How to reload the index page when in focus?

I have a Framework7 app with a homepage showing the user avatar and name.
Sometimes the connection is lost or the user is logged out because the app is in the background, or simply the server is not responding.
On the homepage the avatar and user name is still showing like the user is logged in.
So my question is, how can I reload the ‘SC_User’ action when the app is in focus again, or the user visits the homepage (index) of a FW7 app?

I use the action scheduler to run my user data action every six hours. Seems to work fine on both iOS and Android. I have been logged into my app for weeks now without any issue.

Thanks Brad for the suggestion. I doubt it will help in my case but I added your suggestion as an extra connection-update.

1 Like

ok I managed to use the resume event which calls an alert in this case.
How can I connect this to load the ‘sc_user’?
@Teodor? perhaps?

Try (next to the alert):

dmx.parse(‘sc_user.load()’)

You might need to straighten the quotation marks (I’m trying to write this from mobile).

You might also need to make it
main.indexmain.sc_user.load()
Or
indexmain.sc_user.load()

thanks @bpj I’ll give it a try