如何通过自定义URL手动从网站触发应用程序剪辑

发布于 2025-02-10 05:01:30 字数 239 浏览 2 评论 0原文

我希望从我的网站启动应用程序剪辑。

当前的应用程序剪辑工作正常,因为当我在iPhone Safari上打开网站时,它会自动显示一个横幅,上面有一个按钮,上面写着: Open App

我需要开发自定义我的网站上有一个按钮可以手动触发应用程序剪辑的横幅,因为有时从应用程序剪辑中的横幅看起来有些晚了,所以我不想依赖它。

对此有任何想法吗?我只需要一个方向或引用某些文档。

谢谢

I want App Clip to be launched from my website.

Currently App Clip is working perfectly fine because When I open my website on iPhone safari, it automatically shows a banner on top with a button that says: Open App

What I need is that I want to develop my custom banner with a button on my website from where I can trigger App Clip manually because sometimes that banner from App Clip appears a bit late, so I don't want to be dependent on that.

Any idea regarding this? I just need a direction or reference to some documentation that's all.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

守望孤独 2025-02-17 05:01:30

我以前遇到过同样的问题,据我所知,您只能从Smart Banner启动应用程序剪辑,您不能使用Universal Link作为打开应用程序剪辑的触发器

I've faced the same issue previously and as I understand you can launch the App Clip only from smart banner, you can't use universal link as a trigger for opening the App Clip

秋日私语 2025-02-17 05:01:30

我确认 @vahagn的答案。任何人都在想,什么是智能横幅,这意味着您只需要在&lt; head&gt;&lt;/head&gt; <meta标记中添加标签。 /代码>标签如下:

<!DOCTYPE html>
<html lang="en">
<head>
   <meta name="apple-itunes-app" content="app-id=1234567890, app-clip-bundle-id=com.example.myapp.clip">
   <title>Your title</title>
   ...
</head>
<body>
   ...
</body>
</html>

I confirm @vahagn's answer. Incase anyone is wondering, what is a smart banner, it means you just have to add a meta tag inside the <head></head> tags like below:

<!DOCTYPE html>
<html lang="en">
<head>
   <meta name="apple-itunes-app" content="app-id=1234567890, app-clip-bundle-id=com.example.myapp.clip">
   <title>Your title</title>
   ...
</head>
<body>
   ...
</body>
</html>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文