I have an embedded Shopify app that stores data by using local storage and IndexedDB. Some of this data is downloaded from a bulk query that may run for several minutes. Having the ability to use features such as local storage and IndexedDB makes things so much easier when writing responsive web apps, especially when I need to repeatedly search through the entire product inventory of a store.
Everything works fine in a browser on the Shopify admin site and on the Shopify mobile and POS apps on Android. On iOS, the Shopify app's WebView local storage and IndexedDB are erased every time the iPad/iPhone is rebooted or if the Shopify app is "force closed" by swiping up on the app preview.
This is a huge inconvenience to the merchants who use my app if they loose data when the battery dies on their iPhone. This happens on both the Shopify POS and admin apps on Apple devices.
Why different behaviors for embedded apps on Android and iOS WebViews? Is this something that can be fixed by the Shopify iOS app developers so that browser storage actually remains persistent across reboots?