Gmail中剥离了iOS深层链接 [英] iOS deep linking is stripped out in Gmail

查看:68
本文介绍了Gmail中剥离了iOS深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用myapp://格式从电子邮件打开带有我的iOS应用深链接的电子邮件。它可以在任何iOS邮件客户端(邮件,邮箱等)中运行(即,点击以打开应用),但在Gmail应用(甚至是网络)中均无法使用,从而将其剥离而仅留下文本。除了创建一个从浏览器重定向到应用程序的网络链接以外,还有人有解决方案/替代方法吗?

I'm trying to send an email with deep linking to my iOS app, using myapp:// format to open it up from email. It works (i.e. tapping on it opens the app) in any iOS mail client (Mail, Mailbox, etc.) but not in Gmail app (or even web), that strips it out leaving text only. Does anyone has a solution/alternative beside creating a web link that redirects then from browser to app?

推荐答案

不,不幸的是,Gmail检测到了链接中的非HTTP / https协议并剥离anchor()标记(因此也无法使用data:或javascript:执行重定向)。

Nope, unfortunately Gmail detects non-http/https protocols in links and strips the anchor () tag (so using data: or javascript: to perform a redirect is out too).

如果/何时Google在iOS / Android的Gmail上实施了操作,这些操作可能会起作用( https://developers.google.com/ gmail / actions / actions / actions-overview ),但到目前为止,它们尚未在本地移动客户端上呈现。

If/When Google implements Actions on Gmail for iOS/Android, those may work (https://developers.google.com/gmail/actions/actions/actions-overview), but as of now, they are not rendered on native mobile clients.

这篇关于Gmail中剥离了iOS深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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