10

I would like to use a Smart Banner on my website. It works great in Safari mobile but is not displayed at all in Tweetbot, Twitter App, Facebook App, or any other application that will display my website in a UIWebView component.

Do you know a way to achieve that or a workaround that will let me detect whether my application is already installed and display a message only if it is not.

Avigit
  • 284
  • 2
  • 3
  • 13
Olivier Amblet
  • 723
  • 3
  • 16
  • 1
    http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like might hold some hints – Nevir Jan 25 '13 at 09:41
  • Thank you for the pointer. I think in #ios6, the cookies are sandboxed per application so we can't hack this way anymore. – Olivier Amblet Jan 25 '13 at 14:23
  • Beyond that, the `window.location="x-my-app://blah"` with a "still there?" timeout is a good way to go but it will redirect to your app instead of just detecting whether it is installed or not. – Olivier Amblet Jan 25 '13 at 14:25

1 Answers1

4

Unfortunately, I think SmartBanners only work in MobileSafari. However, you can design your own SmartBanner interface and use the technique outlined in this question: Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps? to do that.

Community
  • 1
  • 1
Sam Baumgarten
  • 2,231
  • 3
  • 21
  • 46
  • Sorry but @Nevir already provide this link in its comment, see my answer in the comment thread of the question. Thanks for the proposal anyway. – Olivier Amblet Jan 31 '13 at 13:36