<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>232302</bug_id>
          
          <creation_ts>2021-10-26 05:41:01 -0700</creation_ts>
          <short_desc>Service worker and storage deleted after 7 days on Web application added to Home Screen</short_desc>
          <delta_ts>2021-10-26 13:24:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Service Workers</component>
          <version>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yogster">jander</reporter>
          <assigned_to name="John Wilander">wilander</assigned_to>
          <cc>katherine_cheney</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1808826</commentid>
    <comment_count>0</comment_count>
    <who name="Yogster">jander</who>
    <bug_when>2021-10-26 05:41:01 -0700</bug_when>
    <thetext>We have a PWA using a Service Worker, Application Cache and IndexedDB to provide offline functionality to our users.

When testing, we install the PWA in our test device, an iPhone 7 running iOS 15.0.2.

We&apos;ve noticed that after a week of not using the PWA, all data (Service Worker, Application Cache, IndexedDB) gets deleted and the standard Safari network error is displayed instead of our PWA&apos;s offline functionality.

We&apos;re aware of this blog post (https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) describing the behaviour above, but this should not apply to installed Web Applications.

Our manifest.json file has &quot;display&quot; set to &quot;minimal-ui&quot;, so the PWA displays in Safari instead of its own window. Could this be the case of the data loss?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809003</commentid>
    <comment_count>1</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2021-10-26 13:24:35 -0700</bug_when>
    <thetext>Thanks for filing!

There is no way to get an exception in Safari.

If you adjust your manifest to use either the “standalone” or “fullscreen” display mode, your home screen web application will open full-screen in Web.app and you will get the behavior you want.

Please reopen this bug if that doesn&apos;t solve it for you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>