Create a link that either launches iOS app, or redirects to app store [duplicate]

强颜欢笑 提交于 2019-11-29 04:02:00
Gerben

check Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

You do however need to host the page containing the script yourself, since javascript inside email doesn't work

 window.launchsockPicker = function() {
       setTimeout(function() {
        window.location = 'http://myDomain.com/install-app.cfm'
       }, 500);

       window.location = 'myApp://?context=someVariableIfNeeded';
   };

There is no good way to achieve this. You can launch an app via a URL but there is no way to test whether an app is installed first.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!