Comments (8)
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.
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.
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.
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.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-delete-launch-screen-cache.