[英]iOS app URL scheme for Facebook Messenger
I want to share my app URL scheme
via FB Messenger
, my URL scheme
is myapp
. 我想通过
FB Messenger
共享我的应用程序URL scheme
,我的URL scheme
是myapp
。
The problem is, when I send the message: myapp://?param1=1234
, FB Messenger
shows the message as plain text and not as a link. 问题是,当我发送消息:
myapp://?param1=1234
, FB Messenger
将消息显示为纯文本而不是链接。
My question is, what should I do to FB Messenger
recognize my URL Scheme
? 我的问题是,我应该如何使
FB Messenger
识别我的URL Scheme
?
Facebook Messenger doesn't see custom URL schemes as hyperlinks, which is why they're being shown as plain text. Facebook Messenger不会将自定义URL方案视为超链接,这就是为什么将它们显示为纯文本的原因。 Even if they were, those links would break for anyone who doesn't have the app installed so it would lead to a somewhat unpleasant user experience.
即使是这样,对于那些未安装该应用程序的人来说,这些链接也会中断,因此会导致不愉快的用户体验。
What you probably want to do instead is wrap your custom URL scheme links inside a standard HTTP link by using a redirect. 您可能想要做的是使用重定向将您的自定义URL方案链接包装在标准HTTP链接内。 If you add some fallback logic, you can even send visitors without the app installed to the app store to get it.
如果添加一些后备逻辑,甚至可以将未安装应用程序的访问者发送到应用程序商店以获取它。
Branch.io (full disclosure: I'm on the team) can handle all of this for you and also does what is known as 'deferred deep linking', which means you can still route users without the app to the correct page after they have downloaded it. Branch.io (全面披露:我正在团队中)可以为您处理所有这一切,并且还执行所谓的“延迟深层链接”,这意味着您仍然可以在没有应用程序的情况下将用户路由到正确的页面上已经下载了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.