You have to store the cart details locally in app data and publish
Remove cart details if order paid success
So it will be realtime
If you exit the app
And reopen it get the cart details