Detecting programmatically whether an app is installed on iPhone

后端 未结 4 1398
予麋鹿
予麋鹿 2020-11-27 04:40

I am in this situation where I have to display a button which says \"Open myApp\" (if myApp is installed on the device) or it says \"Download myApp\" (if myApp is not instal

4条回答
  •  误落风尘
    2020-11-27 04:55

    You can add a simple meta tag in the head of any page that needs this app-sniffing.

    For more info, go here:

    http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

提交回复
热议问题