Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
110 stars 139 forks source link

iOS 9 issue: "URL" Action is not firing #129

Closed CookieCookson closed 9 years ago

CookieCookson commented 9 years ago

Since compiling against the iOS 9 SDK, when doing push notifications with a URL included, it acts the same as if I did an "Open App" Action. There are no errors being fired in the console so I have no lead on what the problem could be. Does anybody else have this issue? I have tried updating to the latest version but to no avail.

CookieCookson commented 9 years ago

I've got to the bottom of the issue, the URL I am providing isn't whitelisted by the App Transport Security in the plist file. By doing:

NSAppTransportSecurity NSAllowsArbitraryLoads

This allows any URL to work. However it isn't recommended we do this as Apple will eventually not approve apps which use this method. Is there any way of getting the plugin to open the URLs without them needing to be whitelisted by NSAppTransportSecurity in the future?

CookieCookson commented 9 years ago

I see you fixed it with https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/commit/3b19a61088bf41a301ed474a3f6426d5df9a990f thanks!