Does 'meta name=“google-play-app”' work?

后端 未结 3 1210
予麋鹿
予麋鹿 2020-12-08 20:16

When you have a (mobile) site, and corresponding mobile apps for your site, there are meta-tags for iOS and Windows 8 to open a standard notification on the platform to tell

3条回答
  •  猫巷女王i
    2020-12-08 20:34

    Does this meta tag works in Android ? No.
    Can it be handled ? Yes.

    iOS 6 and later, natively shows a smart banner that reminds browser user, about the mobile application. But android doesn't support this natively.

    To have this banner in android browsers you can use a jquery plugin: https://github.com/jasny/jquery.smartbanner

    First add this:

    
    

    Then include smart banner:

    
    
    
    

    At last initialize it:

    $.smartbanner({
      title: 'My good title',
      author: 'My smart author'
    });
    

    Source: http://www.dunnsolutions.com/content/application-development-blog/-/blogs/smart-app-banners-for-ios-and-android
    Related: Creating an android smart app banner

提交回复
热议问题