mercredi 25 mars 2015

Custom URL without "cannot open" error


I've implemented custom URLs in my app, and they work fine. I've also implemented custom landing pages that show different videos based on a query parameter.


1) I would like to generate links for Twitter, email, etc. that launch my app if the user clicks on a link on a mobile phone. If the user does not have the app installed, it should go to the landing page in the mobile browser. The link should go to the landing page if clicked on major desktop browsers.


2) On the landing page, I would like to have a link to open up the app. If the app isn't installed, the link should open the app store listing.


On StackExchange and Google, I've found these proposed solutions:


A) http://ift.tt/19PxAm3


B) http://ift.tt/1y6lslC


These solutions are for part 2) above. However, even the canonical version like A) still generates a "cannot open" error in Mobile Safari before redirecting.


Can anyone tell how to write a redirect service for 1) above?


I'd also love a pointer to a good example of how to handle 2) without a error alert box.





Aucun commentaire:

Enregistrer un commentaire