在Twitter App IOS上打开链接 [英] Open Link on Twitter App IOS

查看:1169
本文介绍了在Twitter App IOS上打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在mailchimp上创建了一个邮件模板.它包含一个Twitter链接.但是,如果iPad或iPhone用户从他/她的邮件中单击链接,则Twitter链接将在浏览器中打开,而不是在Twitter应用程序中打开.

I have created a mail template on mailchimp. It consists of a twitter link. But an IPad or an IPhone user clicks on the link from his/her mail, the twitter link opens in the browser instead of the twitter app.

这在Android中不会发生.

This does not happen in Android.

有什么解决方法吗?

推荐答案

如果您使用自定义URL <a href="twitter://",则其他Android/台式机设备将无法打开它. Twitter不会使用来自Safari的标准URL进行重定向,而应该重定向.但是他们确实在左上方提供了在应用程序中打开"按钮.

If you use a custom URL <a href="twitter://" than other Android/Desktop devices won't be able to open it. Twitter doesn't redirect with standard URLs from Safari and they should. But they do offer a "Open in app" button at the top left.

因此,如果您愿意,可以在电子邮件中添加两个按钮.一个专门针对iOS:twitter://status?id=373205208664272897,另一个专门针对其他设备https://twitter.com/support/status/373205208664272897.

So if you want you could add two buttons in the email. One specifically for iOS: twitter://status?id=373205208664272897 and one for other devices https://twitter.com/support/status/373205208664272897.

或者您可以创建一个站点,该站点读取设备的用户代理,然后确定要重定向到的URL.

Or you could create a site that reads the user agent of the device than determines which URL to redirect to.

考虑到在宏伟计划中并不是什么大问题,第三个选择就是将其保留.

The third option is just leaving it alone given that it's not really such a big issue in the grand scheme.

这篇关于在Twitter App IOS上打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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