-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS - White screen before splash screen #9
Comments
I can not reproduce this on iOS emulator and unfortunately I don't have a Mac or real device to test this on. Can you provide more information like:
|
Hello @henriquearthur I'm having the same problem, this happens on physical device but also on the emulator. Video (Also I don't think that black screen in the end is normal?) File of my launchScreen.storyboard: Storyboard |
@joaowd thank you for sharing the video, it is really helpful. I will look into this soon. |
Hi, @henriquearthur first I want to say thank you for the great plugin, I was exactly looking for something like this. |
BTW I am working with XCode 10.3 and so far I have seen this issue on the simulator, I did not test it on a real device yet. Here is my LaunchScreen.storyboard https://gist.github.com/pph7/eb64869986fcf2336eeb69dc2dca0bc0 |
@pph7 and @henriquearthur Can you guys please test if your app hides the status bar on landscape when you use this package? Since I installed this the status bar doesn't disappear on landscape. |
@joaowd sorry I can't reproduce this because my app does not run in landscape mode. Maybe open another issue? |
@pph7 I would but I don't really know if the problem is related. |
@Aljulanda9 @joaowd @pph7 I have tried to reproduce this issue on a iPhone XR and iPhone 6 simulator but had no success. I tried to create a fresh project with Can't reproduce this on default counter example and not in a more complex app. Also can't reproduce by copying the As you can see on the gif, there is no white or black screen. Can you guys check if this issue occurs with a fresh flutter project (counter example)? Maybe the reason I can't reproduce is because my apps are too simple, although I don't think that is a problem given the way that Flutter works, but still I would like to investigate all possibilities. Or maybe is because I'm testing on an emulator inside a Mac OS VM, but if anything that should be a limitation. |
Tested on fresh app and existing personal app, on both the status bar is hidden during splash screen on landscape mode.
Please open a new issue so we can keep discussions separated. |
@henriquearthur I created a new flutter app and with your plugin, the image shows from the beginning. I noticed though now that when I change the background color in the settings of flutter_native_splash the color shows from the beginning, jus the image is delayed. I will investigate further. |
I was able to solve this issue for me. It turns out to be a caching issue with Flutter and XCode. After I did
and resetted the simulated iOS device, the screen showed without a delay. |
@pph7 |
@joaowd did you also reset the simulator? |
@pph7 What do you mean ? Quit and Open the simulator again ? This also happens on physical devices |
Erase all Content and Settings https://stackoverflow.com/a/9088416/284577 |
@pph7 That actually worked! But how do we fix this on a real device ? (Maybe wont happen on a fresh device ? 🤔) |
Alright for some weird reason, It started working well on a real device. |
@joaowd Great! Caching issues related to the launch screen seem to be very common, as I read in a couple of stackoverflow questions, many of them unrelated to flutter. |
As @pph7 pointed out this seems to be a caching problem in iOS development (not related to Flutter or flutter_native_splash) and also a frequent issue:
Explaining to future readers: I will add this information to README on next version so people can solve this quickly. @Aljulanda9 please try this steps on your app and let us know if it works for you too. I am closing this issue because the solution works for other people with same problem - but if it doesn't work for you then please reopen so we can dig deeper. And thanks @pph7 for the solution! |
Hi yes the trick worked. Thank you very much :) |
Happy to help |
I have same issue and even |
@softronaut did you also try to reset the simulator? |
@pph7 yes, right now I tried with different device, same issue. Actually I realised this issue after |
@softronaut right, an iOS issue and a caching issue in particular |
I can confirm it's related the image file and caching. I'm not expert at images but I was using a file exported from Photoshop. Now I used a generator and I think it changes the files structure, now it's loading instantly. |
@softronaut what image sizes are you using? |
It was not related to size as far as I remember. Just try to optimize image via some web services or save again in something like GIMP, Krita etc. then try again. That's how I managed to solve it. |
@softronaut How did you manage to solve this issue? I mean what optimization did you apply to the image using GIMP or Krita? I tried the flutter clean method and nothing is being solved |
There are web services for image size optimization, you can try them. As far as I remember I didn't do any optimization in my case, just did The point is here, when you save or export image from any other software, it changes the image internally according it's algorithm and that's somehow solves the problem sometimes. |
did you fix? |
@yourshinsuke please check my reply, it is most likely a caching issue |
Thanks!! this is my answer!! :) |
Hi, thanks for the wonderful package. It saved me a lot of time. I have a small issue with the iOS splash screen. It works fine, but there's a white screen right before the splash screen that I specified. Have you seen this before or would you know of a way to get rid of that initial white screen? Thanks
The text was updated successfully, but these errors were encountered: