Praful Kadam
Praful Kadam

Reputation: 392

iOS custom smart app banner

I want to have custom view for smart app banner which I think is not possible. but I have seen it in wikipedia mobile site which is smaller than standard apple banner.

wikipedia shows custom banner on its mobile site only if wikipedia app is installed. if it is not installed or user uninstalls it then banner disappears.

Is there a way to achieve this kind of banners?

Upvotes: 0

Views: 2325

Answers (2)

user1140780
user1140780

Reputation: 988

Are you talking about 'Open in app' banner? Those comes by default if you have supported for universal links in the app.

See screenshot: enter image description here

Upvotes: 1

user3802077
user3802077

Reputation: 849

For iOS6+, you can use Smart Banners: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

One of your requirement is to not show when the app is not installed (instead of promoting the app). I do not know of a way to test for installation but I would look

  • url scheme: seems limited because the app will always open instead of just being able to check if system can answer
  • cookies: can a cookie be set from inside app that would be reused by safari when visiting the same domain?
  • files: create a file from the app and try to open it from safari

Upvotes: 0

Related Questions