# Application no longer working on ios 10.2

**URL:** <https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338>\
**Category:** ionic-v1\
**Created:** [August 8, 2017, 10:28pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338 "2017-08-08T22:28:44Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 8, 2017, 10:28pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/1 "2017-08-08T22:28:44Z")

</div>

Hello,

I have a problem with my mobile app.  
The application runs on ios 9.3  
But when i switched to version 10.2 ios some plugins no longer works.

I have updated my plugins and re launch the buid

But it does not work and I do not know how to do the debug

Can you tell me if there is a quick method to know which plugins does not work on ios 10.2 can be?

Here is the list of plugins I use

cordova-plugin-splashscreen  
cordova-plugin-whitelist  
cordova-plugin-console  
cordova-plugin-actionsheet  
cordova-plugin-dialogs  
uk.co.workingedge.phonegap.plugin.launchnavigator  
es6-promise-plugin  
cordova-plugin-x-socialsharing  
cordova-plugin-geolocation  
cordova.plugins.diagnostic  
cordova-plugin-compat  
cordova-plugin-device  
cordova-plugin-device-orientation  
cordova-plugin-keyboard  
cordova-plugin-network-information  
cordova-plugin-statusbar  
pushwoosh-cordova-plugin

thank you

---

<div class="post-metadata">

**Author:** ![royibernthal](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@royibernthal](https://forum.ionicframework.com/u/royibernthal)\
**Post date:** [August 8, 2017, 10:37pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/2 "2017-08-08T22:37:19Z")

</div>

Did you try to delete node\_modules and execute npm install?

I don’t know much about your specific issue, but I got the impression that this is a magical solution which can possibly solve this kind of issues.

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 8, 2017, 10:47pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/3 "2017-08-08T22:47:54Z")

</div>

Hello and thank you for your quick reply.

On android I have no problem, the problem comes on ios 10.2

When you say delete the node\_modules folder I delete from my folder at this level

myapp/node\_modules

I delete?

For npm install

Can you tell me what I should do exactly if possible?

I noticed that when I launch the application it does not work, but if I go back to the home of my iphone, and re open the application the plugins resume but that bug

Thank you

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 8, 2017, 11:02pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/4 "2017-08-08T23:02:54Z")

</div>

hi,

I manually deleted the folder node\_modules

and then

cd /Users/MyMac/Documents/ionic/Myapp  
npm install  
cd /Users/MyMac/Documents/ionic/Myapp  
sudo cordova platform add ios  
sudo cordova prepare  
sudo chmod -R 777 /Users/MyMac/Documents/ionic/Myapp

And I still have the problem.

As I said I have strange behavior, plugins do not work,  
But if I come back to the home or change application and then I come back to my app the plugins reacts …

thanks

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 10, 2017, 8:24am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/5 "2017-08-10T08:24:19Z")

</div>

I would like to know if there is a known problem between an app ionic version 1 and ios 10, if it is compatible or if it bug?

Because my app works correctly on ios 9 but on iOS 10 no and i can not locate the bug

???

thank you

---

<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:** [August 10, 2017, 9:52am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/6 "2017-08-10T09:52:20Z")

</div>

> [@PECNET](#):
>
> But it does not work and I do not know how to do the debug

What does “does not work” mean?  
Doesn’t it start? Do you only have a white screen? What is happening that shouldn’t?

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Safari dev tools: [Remote Debug your Ionic App · ionic.zone](https://ionic.zone/debug/remote-debug-your-app#ios) Look at the console and network tabs for errors.

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 10, 2017, 10:13am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/7 "2017-08-10T10:13:03Z")

</div>

Hello everything works on android, and on the browser

On iOS 10 the application also runs

However the problem is with the plugins

Example I have the share plugin

“Cordova-plugin-x-socialsharing”

When I click the share button in the application there is no reaction,  
If I change my application then go back to my application I see that “action share” has been executed

You can see the video here:

[https://d.pr/v/whgJv](https://d.pr/v/whgJv)

For example, the notification message of the plugins

“Pushwoosh-cordova-plugin”

When it launches the application I do not have the message but if I return to the home on my iphone the message comes from notification appears on the home of the iphone and not on the application

Any plugins reacts outside the application and not in the application

Otherwise everything works on ios 9 except on ios 10 i have this drole behavior

Thank you

---

<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:** [August 10, 2017, 10:50am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/8 "2017-08-10T10:50:50Z")

</div>

Ok, so your app hangs on execution of native plugins until you leave the app and then come back, correct?  
Can you try not to leave the app but just “pull up” the settings thingie from below the screen? Or notification view from above the screen? Does it execute then as well?

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 10, 2017, 11:14am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/9 "2017-08-10T11:14:56Z")

</div>

No it’s not fixed it still does it if I click any button the action happens once I return to the app.

For example I have button that asks to choose the navigation I click navigation and I see the dialogue the choice once I leave and come back.

Same problem …

When you say pull up?

> [@Sujan12](#):
>
> Ok, so your app hangs on execution of native plugins until you leave the app and then come back, correct?
> 
> Can you try not to leave the app but just “pull up” the settings thingie from below the screen? Or notification view from above the screen? Does it execute then as well?

---

<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:** [August 10, 2017, 11:17am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/10 "2017-08-10T11:17:52Z")

</div>

Please reply to my questions individually so I know what you are replying to.

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 10, 2017, 11:56am UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/11 "2017-08-10T11:56:05Z")

</div>

> [@PECNET](#):
>
> Ok, so your app hangs on execution of native plugins until you leave the app and then come back, correct?
> 
> Can you try not to leave the app but just “pull up” the settings thingie from below the screen? Or notification view from above the screen? Does it execute then as well?

Ok  
When you say “pull up” I do not understand

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 10, 2017, 3:02pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/12 "2017-08-10T15:02:18Z")

</div>

Hello

it works

It’s me file index.html which was incorrectly configured for ios 10

Thank you for your help

have a good day

---

<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:** [August 10, 2017, 8:41pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/13 "2017-08-10T20:41:46Z")

</div>

> [@PECNET](#):
>
> It’s me file index.html which was incorrectly configured for ios 10

Can you share what exactly was wrong? As I said this question comes from time to time, so it would be nice to know the reason and solution.

---

<div class="post-metadata">

**Author:** ![PECNET](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PECNET](https://forum.ionicframework.com/u/PECNET)\
**Post date:** [August 10, 2017, 8:56pm UTC](https://forum.ionicframework.com/t/application-no-longer-working-on-ios-10-2/101338/14 "2017-08-10T20:56:00Z")

</div>

Hello

To summarize my friend who helped me said it’s a security concern and that the plugins do not load properly …

It looked at the file index.html

And to modify this line

```
	<meta http-equiv="Content-Security-Policy" content="default-src *;
		style-src * 'self' 'unsafe-inline' 'unsafe-eval';
		script-src * 'self' 'unsafe-inline' 'unsafe-eval';">

```

By this one

```
	<meta http-equiv="Content-Security-Policy" content="default-src * gap://ready; style-src 'self' 'unsafe-inline'; 
	style-src * 'self' 'unsafe-inline' 'unsafe-eval';
	script-src * 'unsafe-inline' 'unsafe-eval'">

```

And the on ios 10 it works
