Reload all the app

I am developing an app (phonegap) with google maps integration.
When the phone dont have internet connection the google libraries dont load.
This is a problem because this libraries are loaded on index.html but its never loads again and maps never are showed until the user restarts the app (killing it and started again).

Is any way to force all app loading? (this app is loaded in phonegap).

Thanks

You could use the network information plugin and add a listener on ‘online’ event to reload the page with $window.location.reload(true)

2 Likes

and keep in mind that you should redirect to the main entry point of your app before reloading. It could break your navigation structure in other cases :wink: