Giter VIP home page Giter VIP logo

Comments (8)

timbru31 avatar timbru31 commented on June 8, 2024

Thanks for your issue, I'll check this.
Can you try to run

await cordova.plugins.launchScreenCache.deleteLaunchScreenCache().then(console.log).catch(console.error);

to see if there is any error thrown?

Are you awaiting the Promise? (I can see that the example is missing the await)

from cordova-plugin-delete-launch-screen-cache.

rolinger avatar rolinger commented on June 8, 2024

Ya know, it was late last night and I just took your code verbatim and just assumed it would work. Applying a proper promise now - damn cordova build ios takes nearly 7 minutes to compile since upgrading to Cordova 11, [email protected] on the latest Xcode 14.2. Took about a minute before the upgrade. Will share in a few.

from cordova-plugin-delete-launch-screen-cache.

rolinger avatar rolinger commented on June 8, 2024

The following returns Cache Response: true - but I am still getting the old splash for about 2 seconds before its overlayed/replaced with the new splash.

      cordova.plugins.launchScreenCache.deleteLaunchScreenCache()
      .then(function(result) {
        console.log("Cache Response:" +result) ;
      }).catch(function(err){
        console.log("Cache Error: "+err) ;
      }) ;

from cordova-plugin-delete-launch-screen-cache.

rolinger avatar rolinger commented on June 8, 2024

I have combed through all my Images.xcassets and CDVLaunchSreen.storyboard and there are no images of the old splash to be found anywhere.

from cordova-plugin-delete-launch-screen-cache.

timbru31 avatar timbru31 commented on June 8, 2024

What iOS version are you testing? It could be the case that Apple changed something again and made things worse 👎

from cordova-plugin-delete-launch-screen-cache.

rolinger avatar rolinger commented on June 8, 2024

iPhone 7,
ios 15.7.3, but app is running Cordova 11, [email protected]

Its happening on Simulator too, iPhone 14, ios 16.2. I am noticing that when connected to mac and app is launched from Xcode, I see the old splashscreen showing and its replace after a few lines of Xcode console output showing the app loading. Until the app load console messages start, the original splashscreen is showing. Able to confirm on a few simulators - sometimes the app launches and it takes a good 10+ seconds to start loading the app, the old splash shows the entire 10 seconds - then as the console messages start the splash is replaced with the new one. So def a caching issue.

from cordova-plugin-delete-launch-screen-cache.

rolinger avatar rolinger commented on June 8, 2024

Correction....it IS working on Simulator. I was testing different devices on initial startup (that already had app on it), it showed the old splash screen on first start up, but on subsequent start ups it was ONLY the new splash screen.

So its something specific to physical devices.

from cordova-plugin-delete-launch-screen-cache.

timbru31 avatar timbru31 commented on June 8, 2024

Yes, that's expected as the cleanup code can only run after the splash was displayed - but it will fix it for subsequent launches (as Apple fails to clean the cache on it's own...). In the past when we did a big rebranding we ran the code in our migration script that was part of the update and the user saw the old one just once.

I'll close this issue for now, please re-open if you encounter further issues.

from cordova-plugin-delete-launch-screen-cache.

Related Issues (1)

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.