172
Views
4
Comments
Solved
PWA on iOS - Local Storage database keeps closing

I am building a PWA that is then installed on the iPhone desktop via Safari. 

I am using the Local Storage to hold some session information. If i leave the app alone for a few minutes i get an error when I try to use any page that connects to the local storage. The error reads:

"database has been closed"

If i close the app and re-launch, everything works fine again.


I have attempted to reproduce the error on my Chrome browser on a computer but it doesn't happen.

iOS version is 13.3.1 on a iPhone XR

Disable Web SQL is turned off


Thanks!

2023-05-18 09-00-19
Ricardo Vaz Alves
Solution

Hi Simon,

Our current offline technology for PWA has some issues on iOS. We're currently working on updating our offline DB stack to properly support PWAs on iOS and Android.

Keep in mind that we will not be changing the language. This means that you can develop your application, and, when we release this new version (expected in early Q2), your application will works as expected. No need to change anything.

Thank you for reporting the issue. 

Regards,

Ricardo Alves

UserImage.jpg
Simon Chester

Ricardo Vaz Alves wrote:

Hi Simon,

Our current offline technology for PWA has some issues on iOS. We're currently working on updating our offline DB stack to properly support PWAs on iOS and Android.

Keep in mind that we will not be changing the language. This means that you can develop your application, and, when we release this new version (expected in early Q2), your application will works as expected. No need to change anything.

Thank you for reporting the issue. 

Regards,

Ricardo Alves

 Hi Ricardo

We have run into an issue with a user on an iPhone 7 (iOS 13.5.11) who is receiving the error regarding the use of offline data. Do you know if the new DB stack supports iPhone 7? We've tried the old trick of turning of WebSQL in experimental features, but that no longer works with the new DB stack. Any help would be much appreciated!

Thanks

 

UserImage.jpg
G Andrew Duthie
 
MVP

Just to clarify, this is a PWA using the new feature toggle in OutSystems 11?

UserImage.jpg
Simon Chester

G. Andrew Duthie wrote:

Just to clarify, this is a PWA using the new feature toggle in OutSystems 11?


Yes sir!

2023-05-18 09-00-19
Ricardo Vaz Alves
Solution

Hi Simon,

Our current offline technology for PWA has some issues on iOS. We're currently working on updating our offline DB stack to properly support PWAs on iOS and Android.

Keep in mind that we will not be changing the language. This means that you can develop your application, and, when we release this new version (expected in early Q2), your application will works as expected. No need to change anything.

Thank you for reporting the issue. 

Regards,

Ricardo Alves

UserImage.jpg
Simon Chester

Ricardo Vaz Alves wrote:

Hi Simon,

Our current offline technology for PWA has some issues on iOS. We're currently working on updating our offline DB stack to properly support PWAs on iOS and Android.

Keep in mind that we will not be changing the language. This means that you can develop your application, and, when we release this new version (expected in early Q2), your application will works as expected. No need to change anything.

Thank you for reporting the issue. 

Regards,

Ricardo Alves

 Hi Ricardo

We have run into an issue with a user on an iPhone 7 (iOS 13.5.11) who is receiving the error regarding the use of offline data. Do you know if the new DB stack supports iPhone 7? We've tried the old trick of turning of WebSQL in experimental features, but that no longer works with the new DB stack. Any help would be much appreciated!

Thanks

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.