# Urgent problem with Splashscreen on IOS using Ionic-v1

**URL:** <https://forum.ionicframework.com/t/urgent-problem-with-splashscreen-on-ios-using-ionic-v1/98958>\
**Category:** ionic-v1\
**Created:** [July 20, 2017, 3:58pm UTC](https://forum.ionicframework.com/t/urgent-problem-with-splashscreen-on-ios-using-ionic-v1/98958 "2017-07-20T15:58:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sletheren](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sletheren](https://forum.ionicframework.com/u/sletheren)\
**Post date:** [July 20, 2017, 3:58pm UTC](https://forum.ionicframework.com/t/urgent-problem-with-splashscreen-on-ios-using-ionic-v1/98958/1 "2017-07-20T15:58:24Z")

</div>

Hello guys,  
I have been struggling with the splashscreen plugin to get it to work, I have made several apps before and haven’t had any problem setting up the splashscreen thing.  
But this time it took me 5 days so far without being able to know what is the problem,  
The app is working flawlessly on Android, but not on iOS

The splashscreen is stuck until 1 minute and some seconds…then the view shows up  
I’ve basically read every post that contains “splashscreen with ionic” whether here in the forum or in the official repo.

I’ve tried:

- Deleting the platform and adding it again,
- Deleting the plugins and installing them again,
- Changing the config.xml over n over again and adding permissions…etc
- updating the cordova-ios version along with the plugins version

But nothing seems to work! 😕  
Also I tried to debug the app so I included an alert inside the .run function but the alert doesn’t show until the next page is shown.

I really need help here! Thanks everyone.

# My config.xml

```auto
<content src="index.html"/>
  <access origin="*"/>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="14"/>
  <preference name="BackupWebStorage" value="none"/>
  
  <preference name="SplashScreen" value="screen"/>
  <preference name="AutoHideSplashScreen" value="0"/>
  <preference name="FadeSplashScreen" value="false"/>
  <preference name="ShowSplashScreenSpinner" value="false"/>
  <preference name="SplashScreenDelay" value="1000"/>
  <preference name="SplashShowOnlyFirstTime" value="false"/>
  <preference name="FadeSplashScreenDuration" value="1000"/>

  <preference name="orientation" value="portrait"/>
  <preference name="fullscreen" value="false"/>
  
  <preference name="android-windowSoftInputMode" value="adjustPan|stateAlwaysHidden"/>
  <preference name="KeyboardDisplayRequiresUserAction" value="true"/>

```

# My ready function inside app.js

```auto
$ionicPlatform.ready(function () {
		ionic.Platform.isFullScreen = true;
		$rootScope.baseURL = baseURL;
		$timeout(function() {
			navigator.splashscreen.hide();
		}, 1000);
		
		if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
			cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
			cordova.plugins.Keyboard.disableScroll(true);
		}
		if (window.StatusBar) {
			StatusBar.styleDefault();
		}
});

```

---

<div class="post-metadata">

**Author:** ![sletheren](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sletheren](https://forum.ionicframework.com/u/sletheren)\
**Post date:** [July 20, 2017, 9:24pm UTC](https://forum.ionicframework.com/t/urgent-problem-with-splashscreen-on-ios-using-ionic-v1/98958/2 "2017-07-20T21:24:29Z")

</div>

Finally solved it, for anyone who’s encountering this problem

- First, make sure you have the whitelist plugin.

- Add this to your index.html:

```auto
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *">

```

- If there are some scripts that you’re using and loading from external sources, just add the domains in the meta.

Cheers!
