Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question
1  
stackoverflow.com/questions/1108693/… might hold some hints – Nevir Jan 25 at 9: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 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 at 14:25

1 Answer

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.

share|improve this answer
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 at 13:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.