When someone logs into my app they are redirected to the logged in page. Let's say the user works in the app for a bit and then closes it and moves on with their day. Hours later they come back to the app. How do I have the app auto refresh the page (and database calls)?
This is similar to have Facebook or Instagram or any other social media apps work. When you come back and open the app everything is refreshed with the new posts/content.