简体   繁体   English

在没有“打开方式”的情况下从 Safari 打开 iOS 应用程序<app> ” 提示

[英]Open iOS app from a Safari without “Open in <app>” prompt

I'm trying to open the app from an HTML page.我正在尝试从 HTML 页面打开该应用程序。 It's working well, but I need the app to open without asking the permission from the user.它运行良好,但我需要在不征得用户许可的情况下打开应用程序。

Currently, Safari will ask the user that "Open this page in myapp".目前,Safari 会询问用户“在我的应用程序中打开此页面”。 I don't want this message box.我不想要这个消息框。

How I can remove this message from Safari?如何从 Safari 中删除此消息? I'm using an URI scheme to open the app.我正在使用 URI 方案打开应用程序。 It looks something like myApp://domain .它看起来像myApp://domain

You can't avoid the dialog you mentioned while using Custom URL schemes.在使用自定义 URL 方案时,您无法避免提到的对话框。 This is iOS feature.这是iOS功能。

Instead you can use Universal Links to open your iOS App without additional dialog.相反,您可以使用通用链接来打开您的 iOS 应用程序,而无需额外的对话框。 You need to have control over iOS App to make this happens.您需要控制 iOS 应用程序才能实现此目的。

To simplify Universal Links setup, you can use one of the companies that can setup most of it for you.为了简化通用链接设置,您可以使用可以为您设置大部分内容的公司之一。 I am working in Firebase/Google https://firebase.google.com/docs/dynamic-links/ .我在 Firebase/Google https://firebase.google.com/docs/dynamic-links/ 工作 Other answer mentioned company that will do this for you as well.其他答案提到的公司也会为你做这件事。

Try branch.io ?试试branch.io It works with Android and iOS.它适用于 Android 和 iOS。

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

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