ionic-team / ng-cordova

OBSOLETE: Please move to Ionic Native https://github.com/ionic-team/ionic-native
https://github.com/ionic-team/ionic-native
MIT License
3.48k stars 1.06k forks source link

"cordova-plugin-splashscreen" crash and Freezes app in new IOS 10.2 and Rejected in the app #1412

Closed ivent closed 7 years ago

ivent commented 7 years ago

Hello I'm crazy about this problem, my app was Rejected in the app store because they could not open in devices with ios 10.2 it hangs on the home screen, I did as you found several solutions with goal change plus no worked out I heard you say it works without Plugin and then I simply made 9 builder until I figured out which plugin caused the error and is exactly without it everything works and it causes an error soon on the white screen home screen unfortunately Has no fix until now or downgrade to previous versions unfortunately, until someone there of the plugin solves the problem the way is to use other unofficial plugins temporarily, I hope someone finds the solution fast because 99% of apps in phonegap use this plugin .

ivent commented 7 years ago

Hello I discovered the source of the problem, I was successfully using the option to manage the time of my splash by the code, however from 10.2 something goes wrong and the screen So I had to re-include the option to auto hide as true, so now the app does not hang anymore follows the full list of splash screen preferences:

Plugin version Config.xml

<Plugin name = "cordova-plugin-splashscreen" source = "npm" spec = "4.0.1" />

   <Preference name = "SplashScreen" value = "screen" />
   <Preference name = "AutoHideSplashScreen" value = "true" />
   <Preference name = "ShowSplashScreenSpinner" value = "true" />
   <Preference name = "FadeSplashScreen" value = "true" />
   <Preference name = "FadeSplashScreenDuration" value = "1.0" />
   <Preference name = "SplashScreenDelay" value = "100" />
   <Preference name = "SplashScreenBackgroundColor" value = "# FE5D01" />
   <Preference name = "SplashMaintainAspectRatio" value = "true" />