Smart app banners do not appear after being closed on iPad with IOS7

前端 未结 6 1964
谎友^
谎友^ 2020-12-03 05:13

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. Probl

6条回答
  •  醉梦人生
    2020-12-03 05:41

    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.)

提交回复
热议问题