从电子邮件链接打开iPhone应用程序 [英] Open iPhone App from an Email Link

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

问题描述

我正在开发一个向用户发送电子邮件的程序,并且打开iPhone应用程序的链接嵌入在电子邮件中。问题是当用户点击链接打开应用程序时,邮件已经删除了冒号,所以该链接不再有效!

I've working on a program where an email is sent to a user, and a link to open the iPhone app is embedded in the email. The problem is that when the user clicks the link to open the app, mail has stripped out the colon, so the link no longer works!

正在创建的链接基本上看起来像这样:

The link being created basically looks like this:

@"<BR><BR><BR><A HREF=\"http://myApp://\">Open App</A>"

但是,当点击电子邮件时,该链接会在浏览器中打开:

But the link, when clicked in the email, opens this in the browser instead:

myApp //

没有冒号,所以应用程序不启动,浏览器说它找不到

with no colon, so the app doesn't launch and the browser says it can't find the page.

任何想法如何解决这个问题?谢谢!

Any ideas how to fix this? Thanks!

推荐答案

应该是:

@"<BR><BR><BR><A HREF=\"myApp://\">Open App</A>"

作为gmail阻止的自定义网址的解决方法,您可以做的是设置类似 http://myapp.mydomain.com/ up do redirect to myapp:// ... 看起来像一个普通的域名,但打开你的应用程序。在加号上,您将可以看到有多少人点击您的链接,但在下一个方面,它将首先通过Safari弹出。

As a workaround for custom urls being blocked by gmail, what you could do is set up something like http://myapp.mydomain.com/ up do redirect to myapp://... That way it'll look like a normal domain but open your app. On the plus you will be able to see how many people click your link, though on the down side it'll pop via Safari first.

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

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