title: On mobile, localStorage is erased after a few minutes of doing something else
body: <p>This problem only happens with my progressive React web app when I run it on my iPhone 5S (iOS 12.5.2) and LG Android phone. It does this with Mobile Chrome and Mobile Safari. Everything works fine on Chrome on my Macbook Pro.</p>
  <p>I will have the app open then switch to something else on my phone. If I go right back to it within five or six minutes, the former state is not lost. But if I wait longer, the page reloads as if localStorage has been deleted. The longer I've been away, the longer it takes to restore the app. It had been doing that progressively extending reactivation delay part for a while, but only recently it started to also completely lose what's in localStorage too.</p>
  <p>I looked at &quot;Website Data&quot; before and after this happens and saw that the site has about as much data before and after.</p>
  <p>I have tried this both with and without using a service worker but I got the same results.</p>
  <p>The site is: <a href="https://www.stopindoctrination.org" rel="nofollow noreferrer">https://www.stopindoctrination.org</a></p>