Giter Club home page Giter Club logo

Comments (6)

khmyznikov avatar khmyznikov commented on July 18, 2024

@JuanCecenasJPGlobal activate the debug mode and try to inspect your cache storage. Which iOS version?

from pwabuilder.

JuanCecenasJPGlobal avatar JuanCecenasJPGlobal commented on July 18, 2024

@khmyznikov I've activated debug mode and have been inspecting the cache storage. Currently, I can see and access the Indexed DB, however, I'm not observing that the files are being cached. It seems like the application always attempts to fetch files from the server instead of utilizing the local cache. Could you provide guidance on how to address this issue? Additionally, the iOS version I'm conducting these tests on is 17.2

from pwabuilder.

hoveit avatar hoveit commented on July 18, 2024

Same issue here!

from pwabuilder.

JuanCecenasJPGlobal avatar JuanCecenasJPGlobal commented on July 18, 2024

Additionally, I came across some information suggesting that using reload or reloadFromOrigin instead of load might have an impact on caching. Could you confirm if this could be relevant to our issue?

Furthermore, I found some resources discussing how to activate cache mode in Swift. However, I'm unsure about how to implement or configure it in our app. Would enabling cache mode or implementing any specific steps help in ensuring the correct offline functionality of our application? It's worth mentioning again that the PWA works offline seamlessly on web and Android platforms.

from pwabuilder.

JuanCecenasJPGlobal avatar JuanCecenasJPGlobal commented on July 18, 2024

Additionally, I came across a code snippet that uses navigator.storage.persist() to attempt to persist local storage in the browser. Although I've tried implementing it in my sw.js file, I receive an error message indicating that persist is not a valid function.

navigator.storage.persist().then(function(persistent) {
if (persistent)
console.log("Storage will not be cleared except by explicit user action");
else
console.log("Storage may be cleared by the UA under storage pressure.");
});

While I haven't been able to get it working yet, I thought it might be helpful to mention it here in case it provides any clues on how to address our caching issue in the iOS app.

from pwabuilder.

jgw96 avatar jgw96 commented on July 18, 2024

Hello all!

I am going to ask that we move this discussion to our Discord https://aka.ms/pwabuilderdiscord as that is where we normally handle issues for our experimental iOS platform. Thanks all!

from pwabuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.