Search code examples
iosios6

custom URL Scheme in iOS 6 not working?


My app uses a custom URL scheme so i send a link to my users in an email which when clicked, launches my app installed on their devices. This was working seamlessly till iOS 6 came into picture. Now when the users click on the link or even type the address manually in the safari they get an error saying "Safari cannot open the page because it is a local file."

Wondering if anyone else encountered the same or if someone has any pointers in this regard !!

Any help much appreciated...

Update: it works if I only give my app's custom url without any parameters.. e.g. if I do "reader-app://" it launches my app but if i do "reader-app://doc=xyz" it doesn't !


Solution

  • try: reader-app://?doc=xyz (add a question mark after //) this way you'll specify a query string. It works for me, but it presents an alertdialog asking the user if she wants to open the url with my application