您可以从 Web link 启动**任何** phone 应用程序吗?

Can you launch **any** phone app from a web link?

我正在制作一个带有 Web 界面的 phone 自动化系统。作为其中的一部分,我希望用我的 phone.

替换所有遥控器(电视媒体中心等)

我有一个带有 remote control iOS app 的 Roku 媒体播放器,我想做的是从我的网络界面启动 Roku 本机 phone 应用程序。

我知道可以通过 href 启动应用程序 such as this:

<a href="fb://profile">Launches native FB app</a>

但是这两个我都试过了,都失败了

<a href="roku://">Fails to launch native 'Roku' app</a>

<a href="ROKU://">Fails to launch native 'ROKU' app</a>

所以我有两个主要问题:

  1. 是否可以从网络启动任何应用程序link,或者应用程序开发人员是否需要以某种方式启用该功能?

Answer - Yes the app developer will need to set a url schemer

  1. 有没有办法确定 URL 您需要启动应用程序 IE Facebook 应用程序可以通过 fb:// 启动,但您可以确定在任何地方吗?

Answer - There is a link to multiple URL schemers for popular apps below but my understanding is that the app developer would need to release them

谢谢

JS Fiddle 以防万一 - https://jsfiddle.net/0znc12bs/

Update - as a point of reference I am not developing an app this is a web service trying to connect to apps I didn't author.

Update2 - I have been in touch with Roku support and their remote app currently doesn't support deep linking.

要从网络打开应用程序 url 应用程序开发人员需要在应用程序中设置 id(深层链接)设置和 URL 模式

对于著名的应用程序,您可以从网上找到深层链接url,从中您可以创建打开应用程序的列表
否则你可以在它的网站上找到他们写的

可以提供一些 url 模式列表的站点列表,您可以使用这些模式从 Web 打开应用程序: