question

Ahmed Dambatta Hassan avatar image
Ahmed Dambatta Hassan asked

HTML5 app terminates when sent to the background

Hello, I have a hybrid app built using Next.js (HTML5) and packages using Android webview.
When a user clicks home and send the app to the background and goes back to the app, the previous page shows for about a second or two and then the app reloads and sends the user to the home page. How do i keep the previous state?

I also used the Amazon web api suggested code for page visibility
https://developer.amazon.com/docs/fire-tv/getting-started-with-web-apps.html#the-page-visibility-api

web apps
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers