将我的网站重定向到用户设备上的特定应用程序

redirect my web to a specific application on the user device

我正在构建一个购物网站,该网站应在用户单击 'submit' 时将其重定向到其设备中的特定应用程序。

我正在使用 Java 脚本开发此网站。

要求是:

1) 如果他从计算机上使用该网站-应用程序不应打开。

2) 如果他从已安装该应用程序的设备上使用该站点,它应该是打开的,

else-playstore ao itunes 应该在应用页面打开。

现在,我的问题是 #2 - 我不知道如何将用户重定向到他设备中的特定应用程序并自动打开它。

我不知道应用程序 URL 或任何 API。

可能吗?怎么样?

您可以使用通用 links 来做到这一点。这里是link to the documentation provided by Apple themself. There is even an entire video related to this topic on their website, here's the link。我认为这些文档足以让初学者采用通用 link.