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

查看:65
本文介绍了从电子邮件链接打开 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:

我的应用程序//

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

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

作为自定义 url 被 gmail 阻止的解决方法,您可以做的是设置类似 http://myapp.mydomain.com/ 的内容重定向到 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天全站免登陆