从短信链接或电子邮件链接启动应用程序 [英] Launching app from sms link or email link

查看:256
本文介绍了从短信链接或电子邮件链接启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在遵循短信或电子邮件链接时启动应用。我已经阅读了有关URL方案的内容,并且已经测试了它并且它可以正常工作,但问题是如果设备上没有安装该应用程序,则不会发生任何事情。如果没有安装应用程序我需要一种打开网址的方法,但我找不到这样做的方法...

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...

有什么想法?

谢谢

推荐答案

可以做到。
我构建它的方法是从你控制的服务器进行重定向。

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


  1. 你向用户发送一个链接指向您的服务器。

  2. 您尝试使用自定义网址方案启动您的应用。

  3. 如果失败,您将用户重定向到应用商店,以便他们可以下载您的应用程序。

这是一个有趣的问题,有多种方法可以检查通过自定义网址尝试的启动是否成功。

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

这篇关于从短信链接或电子邮件链接启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆