Launching app from sms link or email link

余生颓废 提交于 2019-12-17 20:43:24

问题


I have the requirement to launch an app when an sms or email link is followed. I have already been reading about URL schemes and already test that and it works, but the problem is that if the app is not installed on the device nothing will happen. I need a way to open a web url if the app is not installed, but I couldn't find a way of doing this...

Any idea?

Thanks


回答1:


It can be done. The way I would structure it is by having a redirect from a server you control.

  1. You send the user a link that points to your server.
  2. You try to launch your app using the custom URL scheme.
  3. If it fails, you redirect the user to the app store so they can download your app.

Here is an interesting question with several ways to check if the launch attempted via your custom URL was successful.




回答2:


I would insert a link to the website in SMS body. Then I would write a script on the website which will either open a download link or open the app

This answer will solve your problem



来源:https://stackoverflow.com/questions/15880395/launching-app-from-sms-link-or-email-link

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