I am building a Nuxt PWA app. I have added a user login to my app. The app works fine when used on chrome on android. But when the user installs the PWA onto the home screen on their phone, and then when the user kills the app after login, the user gets logged out. Is there any way I can reinitialize the user?
I am using stayLoggedIn as true
I don’t mind sharing the code if that helps to understand the situation.
Are you using our SDK or Codeless for the frontend development?
I am using Backendless SDK.
The issue is only when the PWA is installed onto the phone. But when I am using the app on chrome (without installing) it works great. I am still checking more on why this is happening…
Hi @aneeshameed ,
Sorry for inconvenience.
Currently JS SDK uses Local Storage to store information about current user. PWA does not support it so that is why you experience such behavior.
I have created an internal ticket BKNDLSS-27808 for this problem. We will reach you out when fix will be released.
Fortunately, I was able to get it done. I have created a sample, minimal demonstration app at https://protean-tome-341509.appspot.com/