Resolved. New iOS 12.2 you can leave web app by pressing home button and starting up another app on iIOS and return to your web app in the state you left it which is great.
We have an exit button for Windows which the client presses before leaving the app, which is redundant on iOS and causes an error which in turn stops the Web App from updating if there is an update. The work around is to delete web app install again or restart iOS
This would not be required if we just disable the exit button for iOS OS.
I have exactly the same problem with 12.2. Previously, an app would check for updates every time it was launched from the homescreen, whether or not it had been swipe-closed. Now it does not update immediately when a revised app is uploaded (to my own server), even if it is swipe-closed.
However, it does eventually update (only if swipe-closed), but only after being left for hours or even overnight.
We’re working to figure out what is happening here. My hunch is that we are also not done with changes from Apple in this area - the next version of iOS is sure to change things again.
Here is all the documentation that Apple has released on this issue:
As a temp measure I have added a menu option in my app - “Check for Updates” when selected
calls location.reload(true); // force reload.
It works on all platforms…
I need to make my apps work offline … currently has links to online CDN’s for some libraries … if put my iPAD in Airplane mode no internet the app show’s all jumble forms. Swipe to close. Switch Airplane mode off - connect to internet - launch app from home screen - because iOS 12.2 does not refresh the app your left with the jumbled screen unable to run app. Have to delete app from Home Screen and add in from Safari. Therefore need to make app work offline.
If there is some new event for this, I haven’t found docs for it yet. My interpretation of Firtman’s article is that he is saying this now works with Home Screen apps as well as web pages.
Apparently the new iOS PWA updates requires adding support files to the host web site of the app:
“Progressive web applications (PWA)](Progressive Web Apps | The Benefits And Features) are a newer class of web site. They are fast, reliable, secure and engaging. Behind the scenes they are served using HTTPS, have a valid web manifest file and a registered service worker. These are the core technical requirements.”
That article is from March, 2019, based on wording Apple introduced in 2017. So far, this hasn’t affected any AppStudio app that we know of.
We’re working on adding manifest.json and serviceworker.js files to AppStudio to see how this works in the real world. Apple have just released iOS 12.3 beta, so more improvements may be coming.