28

In short, my team has a mobile site and an app in the appstore. We have added the meta tag to show the smart app banner. I saw it and everything worked as expected. Problem is, I just closed the banner and now it doesn't reappear. I did the same thing with the Ted.com smart app banner with the same results.

Currently, we're using the iPad with IOS7 and I have read all over that it is a cookie preventing the reappearance of the banner. I have cleared Safari's cache and cookies numerous times, made sure to close safari from memory, run safari in private mode, and I've even rebooted the iPad but those dismissed smart banners still don't reappear. Is there something I'm missing? Most of what I've read about the cookies seem to be specific to IOS6, is there a difference here with IOS7? Anyone have an idea as to how to make these dismissed smart app banners reappear?

Gobo
  • 687
  • 1
  • 6
  • 16
  • 1
    Just to note, I factory reset the iPad and the smart banners returned... That can't be the solution! There must be another, simple way. – Gobo Oct 17 '13 at 15:11

7 Answers7

14

This issue is solely iOS 7. In iOS 6 all you had to do was clear the Safari cookies and history. Apple must have changed something in how they store if an app banner has been closed in iOS 6 vs iOS 7. Surprise!

The following steps are what I have determined gets the smart-app banner to appear again, confirmed on a device running iOS 7.0.4:

  1. Settings -> Safari -> Clear history
  2. Settings -> Safari -> Clear cookies and data
  3. Settings -> General -> Reset -> Reset Location & Privacy
  4. Settings -> General -> Reset -> Reset All Settings

Not the cleanest, but it gets the job done.

Corlock
  • 156
  • 1
  • 4
  • The same applies to iOS 7.0 - It seems the 'Reset All Settings' is unavoidable, unfortunately. – Bill Keller Jan 30 '14 at 16:00
  • Reset All Settings is the solution I used when I wrote the question, unfortunately, surely Apple will fix this nastiness... – Gobo Mar 14 '14 at 14:08
  • 2
    Reset All Settings is the answer to this until(if) Apple fixes this. – Gobo Apr 14 '14 at 16:32
  • 2
    Unfortunately on iOS 9 you have to `Reset All Contents and Settings`... I wonder how will they make it even more painful on iOS 10... – Tamás Zahola Jun 02 '16 at 14:35
7

1.remove app from device

2.Settings -> Safari -> Clear History and Website Data

3.Open the safari and open your website

4.Install the app from store

5.reload website

6.good luck

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
Arsen Avetisyan
  • 171
  • 2
  • 4
  • 3
    On iOS 14.8, the **Clear History and Website Data** step was enough to get the banner to appear. But it does leave me with a new problem: the banner is offering to **View** the app in the app store, not to **Open** the developer version I've already installed with XCode. I was to open that version, because I want to test if I've implemented `application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any)` properly... – Cowirrie Oct 15 '21 at 00:28
4

Also had this problem on both iOS8 and iOS9.

Using the info on this page (thanks!), I found the following solution:

USE AT YOUR OWN RISK!

Tested with iTunes 12.3.1.23 on OSX 10.9.5 with iPhone 5S running iOS 8.4.1

  1. Find the app-id by searching the website's source by searching for "app-id" Example for www.marktplaats.nl: <meta name="apple-itunes-app" content="app-id=373963365, app-argument=marktplaats://homepage">
  2. Make a "local computer backup" with iTunes
  3. Find your backup (probably in: ~/Library/Application Support/MobileSync/)
  4. Make a copy of your backup just in case (Yes: a backup of a backup :-)
  5. Search backup for the app-id. I used: grep "373963365" -r * in the Backup folder
  6. For my example grep found a "hide banner file" starting with 03f01e41fc5d containing the app-id:

bplist00—Y373963365

  1. Change the app-id number to an app-id number from which you never want to see a smart app banner or just increment the app-id by one and save the file.
  2. Restore the changed backup to your device.

Notes:

  • Making, copying, searching and restoring a backup takes some time if you have a 16GB backup like me; be patient.
  • You might find multiple app-ids in the "hide banner file". I don't see why this procedure wouldn't work for changing multiple app-ids
  • Don't delete the "hide banner file" as this will corrupt your backup.
  • Incrementing the app-id by one or choosing any other 9 figure random number will hide that "random" smart app banner!
  • I also successfully did this on a new iPad running iOS 9.0.2

For those who want to go the jailbreak way: I found the file on a jailbroken iPad here: /var/mobile/Containers/Data/Application/{Safari App ID}/Library/Webkit/StoreBannerTracker.plist

@Apple: why can't we just delete this using Clear History and Website Data ????

JdenHartog
  • 41
  • 3
1

There is a way to reset the smart banner behaviour without resetting all preferences. It requires either jailbreaking your iDevice or using an iTunes backup editor such as iExplorer.

Jailbreak method

  1. Navigate to Safari application directory (e.g. using iFile):

/var/mobile/Applications/{Safari App ID}/Library/Webkit

(If you are using iFile, application names can be displayed along side the app id folder names. Enable Preferences -> File Manager -> Application Names)

  1. Delete or rename the file StoreBannerTracker.plist

Backup editor method

  1. Backup your iDevice using iTunes. (Probably best not to encrypt the backup)
  2. Use an iTunes backup editor such as iExplorer to delete StoreBannerTracker.plist. In iExplorer:
    • Browse Local iTunes Backups -> {Name of your iDevice} -> Backup Explorer -> AppDomain-com.apple.mobilesafari -> Library -> WebKit
    • Right-click StoreBannerTracker.plist and click Delete
  3. Restore the backup to your iDevice using iTunes

(Disclaimer: I haven't tried this method because I use iExplorer in demo mode, which doesn't allow changes.)

CodeSimian
  • 77
  • 2
0

For anyone with iOS14+ (because I don't have any older).

Smart app banner shows up fresh every time you open the webpage from Slack.

Ryoichiro Oka
  • 1,949
  • 2
  • 13
  • 20
-1

Tap on Settings > General > Usage > wait for a while till the list of the apps appear... > Show all apps > Safari > Website Data > Remove All Website Data.

I've tried this on iOS 7 with iPhone 5s, and it will show the smart banner back.

Cheers.

Shiva Saurabh
  • 1,281
  • 2
  • 25
  • 47
Hendraptr
  • 31
  • 1
  • 2
    I just tested this on the iPad with iOS 7.1 and it did not work. I'll try to test with an iPhone. – Gobo Mar 14 '14 at 14:10
  • 3
    No luck for me on an iPhone with iOS 7.1. Smart app banner stays hidden even after "Remove All Website Data". – gmcnaughton Mar 19 '14 at 09:25
-3

Try clearing Safari Cookies and Data and it should reappear

Batman
  • 908
  • 4
  • 15
  • 32
  • I noted above that I have tried clearing the cookies and data numerous times, it appears not to work on IOS7 and I've tried this on different IOS7 devies. – Gobo Oct 18 '13 at 13:01
  • Oh that can be a problem. I have not tried this on iOS 7 device – Batman Oct 19 '13 at 05:06
  • I tried this too and it does not work. Also tried closing the app and re-opening it, and also rebooting the entire device - neither works. I sent feedback on the Apple help page for Smart App Banners (https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html) but I don't know what else to do. – jrz Jan 24 '14 at 22:21