ios - Web service for deep linking -


this first time create ios application required deep linking. need create web service custom url scheme ios in order publish online. please give pointer on regarding web service should use or there alternative way create deep linking custom url scheme ios. thanks.

you can server platform - rails, php, dot.net, etc.

here simple php snippet. replace "myappname" app's url scheme. param/value query optional - can use other text , parse in app delegate's openurl method.

if (strpos($_server['http_user_agent'], 'iphone os') !== false) {   // redirect   header("location: myappname://?key=value");   exit(); } 

client use-cases:

  • ios safari, app installed - open app.
  • ios safari, app not installed - safari complain cannot open link.
  • another ios app, app installed - switch app.
  • another ios app, app not installed - same safari. however, if other app implementing uiapplication's canopenurl: - may gracefully take user app store, it's other app developer.
  • any other device or browser - continue render page, can add html including appstore links.

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -