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

**URL:** <https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926>\
**Category:** ionic-v3\
**Created:** [September 1, 2017, 7:10am UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926 "2017-09-01T07:10:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikethetechy](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mikethetechy](https://forum.ionicframework.com/u/mikethetechy)\
**Post date:** [September 1, 2017, 7:10am UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926/1 "2017-09-01T07:10:48Z")

</div>

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 :

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

```

also I tried to change it longer:

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

```

right now this is my config:

```auto
  <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

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 1, 2017, 10:13am UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926/2 "2017-09-01T10:13:20Z")

</div>

What is your `ionic info` output?

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

---

<div class="post-metadata">

**Author:** ![mikethetechy](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mikethetechy](https://forum.ionicframework.com/u/mikethetechy)\
**Post date:** [September 1, 2017, 10:16am UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926/3 "2017-09-01T10:16:31Z")

</div>

Thxx a lot @Sujan12 for the reply .

here:

```auto
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 

```

---

<div class="post-metadata">

**Author:** ![mikethetechy](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mikethetechy](https://forum.ionicframework.com/u/mikethetechy)\
**Post date:** [September 1, 2017, 10:41am UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926/4 "2017-09-01T10:41:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [September 1, 2017, 1:31pm UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926/5 "2017-09-01T13:31:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mikethetechy](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mikethetechy](https://forum.ionicframework.com/u/mikethetechy)\
**Post date:** [September 1, 2017, 3:42pm UTC](https://forum.ionicframework.com/t/app-closes-shortly-after-launching-in-ios-but-android-works-fine/103926/6 "2017-09-01T15:42:47Z")

</div>

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