<?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>232304</bug_id>
          
          <creation_ts>2021-10-26 07:15:02 -0700</creation_ts>
          <short_desc>PWA doesn&apos;t work in offline mode intermittently - Restarting iPhone fixes it</short_desc>
          <delta_ts>2026-02-12 22:38:49 -0800</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 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yogster">jander</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>marcosc</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

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

This is the same PWA as bug https://bugs.webkit.org/show_bug.cgi?id=232302

We&apos;ve found the following behaviour in an iPhone XR running iOS 14.8:

Intermittently, when using the PWA in offline mode, the standard Safari network error is displayed instead of our PWA&apos;s offline functionality.

Restarting the phone brings back the PWA in offline mode, without the need to go online, along with all saved data - So unlike the bug above, it doesn&apos;t look like the data is being evicted.

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808941</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-26 11:01:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/84671520&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2181121</commentid>
    <comment_count>2</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2026-02-12 22:38:49 -0800</bug_when>
    <thetext>Closing as works for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>