Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari not open iOS Apps in iOS 9

I Have a url sending to email and if the user hit that link it opens the app if it's installed, and it was working fine in iOS 8, since i switched to iOS 9 the redirection to the application not working any more, I tried to add "LSApplicationQueriesSchemes" array and add my url schemes in it, but i did not work too. So, what did it miss ?

like image 672
Islam.Ibrahim Avatar asked Sep 23 '15 11:09

Islam.Ibrahim


2 Answers

With iOS9, Apple is changing a few things concerning URL schemes. http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes is an article about those changes.

Basically, you now have to register all URL schemes that are supported by your app in your .plist file.

like image 138
Avinash651 Avatar answered Oct 26 '22 02:10

Avinash651


I did a fix in javascript code that make a redirection to url that open my application.

I was create an iframe that hold a url src object for the redirect url. I removed that iframe and replaced it with that line window.location = "url", that's it and every thing work perfectly fine and safari now redirected me again to my application but this time with one more step is it shows up a message for the user that ensure he want to goto the application.

So, if any one faced that problem with redirection again, check the redirection code javascript and remove the iframe and replaced it with window.location

like image 38
Islam.Ibrahim Avatar answered Oct 26 '22 01:10

Islam.Ibrahim