简体   繁体   English

使用我的 url 方案作为链接从 gmail 打开应用程序

[英]Open app from gmail with my url scheme as a link

I declared a url scheme in my ios app, myapp so that my app will be able to open from another apps like sms and gmail.我在我的 ios 应用程序 myapp 中声明了一个 url 方案,这样我的应用程序就可以从短信和 gmail 等其他应用程序打开。

For sms app, this works fine.对于短信应用程序,这很好用。 SMS detects myapp:// and shows it as a link. SMS 检测到 myapp:// 并将其显示为链接。 On clicking, it opens my app.单击时,它会打开我的应用程序。 But this fails for gmail. When I receive an email with the same url in gmail app.但这对于 gmail 失败了。当我在 gmail 应用程序中收到具有相同 url 的 email 时。 It fails to detect it as a link, which results to unable to open my app.它无法将其检测为链接,导致无法打开我的应用程序。

How can I achieve deep linking my app with gmail as well?我怎样才能实现我的应用程序与 gmail 的深度链接?

Thank you in advance.先感谢您。

In case of a url scheme the third party app like Gmail would also have to add support for your url scheme.如果是 url 方案,像 Gmail 这样的第三方应用程序也必须添加对您的 url 方案的支持。 Maybe Universal Links can work in your case?也许 Universal Links 可以适用于您的情况? https://developer.apple.com/ios/universal-links/ https://developer.apple.com/ios/universal-links/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM