how to prevent iOS safari alert when trying to open non-installed native app?

后端 未结 6 1912
你的背包
你的背包 2020-12-04 09:11

I\'ve been looking for a way to open a native iOS app from the browser. I found a decent solution here: Is it possible to register a http+domain-based URL Scheme for iPhone

6条回答
  •  既然无缘
    2020-12-04 09:23

    The right way to do this is to use Smart App Banners: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

    If your app is not installed, the banner will let the user install it. If it is installed, it will open the app, and you have a way of specifying custom URL arguments to pass to the app.

提交回复
热议问题