App closes shortly after launching in ios but android works fine?

Hi guys! hope you all doing good!. I am having a problem with ios when i launch the app, it shows the splash screen then the app just closes itself. While on android it works fine. why is that? lately I have been playing with the SplashScreenDelay it could be because of that? I was trying to make the app boot time faster so I changed it like this :

    <preference name="SplashScreenDelay" value="4000" />

also I tried to change it longer:

    <preference name="SplashScreenDelay" value="10000" />

right now this is my config:

  <preference name="webviewbounce" value="false" />
    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="android-minSdkVersion" value="16" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="1000" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="10000" />
    <preference name="FadeSplashScreen" value="false" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="loadUrlTimeoutValue" value="200000" />
    <preference name="Orientation" value="portrait" />

any sort of helpful would be really nice!! thxx

What is your ionic info output?

Messing with these settings shouldn’t really cause your app to crash.

1 Like

Thxx a lot @Sujan12 for the reply .

here:

cli packages: (/Users/myname/Desktop/ionic3projects/myapp/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 1.3.7
    Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.4.0
    Ionic Framework    : ionic-angular 3.4.2

System:

    Node  : v6.11.0
    npm   : 3.10.10 
    OS    : macOS Sierra
    Xcode : Xcode 8.3.2 Build version 8E2002 

ok i figured it out. it is working with ios version 4.1.0.

I did: ionic cordova platform rm ios

then added 4.1.0 version: ionic cordova platform add ios@4.1.0

for the reason why I was not able to get it to work with just - build ios:
i think because i am usinf fcm plugin , it is causing some problem when the app launched. may be could look into this.

1 Like

FYI: Your app-scripts is really old. Lots of bug fixes since then. Even if you don’t want to update ionic-angular for some reason, getting your app-scripts current might help you sidestep a lot of issues.

@AaronSterling thx for the info…yes I have never updated it …i will give it an update soon