ios

IOS splash screen 캐싱 문제

uzzam 2023. 2. 2. 03:05

flutter_native_splash 패키지를 이용하여 스플래시 스크린을 만들었다.

근데 앱을 배포하고보니 흰 화면이 처음에 1초간 뜨고 스플래시 스크린이 보여졌다.

이미 해결해버려서 영상은 없지만 이것은 flutter의 문제가 아닌 ios에서의 고질적인 문제라고 한다.

 

https://developer.apple.com/forums/thread/105790

 

First used launch screen file is f… | Apple Developer Forums

For our app the only way to "fix" this was to delete the app from device, restart device, then install app again - but of course this would mean the user loses all data. A different workaround possible since iOS 11 is: using Settings app, delete app but ke

developer.apple.com

https://stackoverflow.com/questions/33002829/ios-keeping-old-launch-screen-and-app-icon-after-update

 

iOS Keeping old launch screen and app icon after update

I have an app where I recently replaced the launch images and app icons, I removed all of the old assets from everywhere in the project. When I upgrade the app from the old version to the new versi...

stackoverflow.com

간단한 해결법은 앱을 삭제하고 재부팅 후 다시 다운받으면 된다.

하지만 로컬 DB에만 저장을 하는 앱이라면 사용자에게 앱을 삭제하라고 할 수는 없다.

 

그럴 때 아래의 사이트가 도움이 될 수 있을 것 같다.

https://www.theswift.dev/posts/fix-the-cached-launch-screen-image-bug-on-ios

 

Fix the cached launch screen image bug on iOS | The Swift Dev Blog

Every once in a while you’ll probably make some changes to your launch screen, and I’ve run into a few headaches while doing it. Most recently I had trouble with an image not updating as expected. Let’s walk through what I did...

www.theswift.dev