Creating an android smart app banner

2019-01-10 09:25发布

Is there any solution for Android devices similar to the iOS 6 smart app banner?

Here is the code for smart app banner

<meta name="apple-itunes-app" content="app-id=311507490, affiliate-data=partnerId=30&siteID=k1CkFsOh4nQ"/>

3条回答
兄弟一词,经得起流年.
2楼-- · 2019-01-10 10:08

Since Chrome 44 Beta you can push your app in Chrome for Android with a native app install banner on your website. There are a couple of criteria that need to be met in order to enable it:

  • You will need a web app manifest file
  • You will have to serve your web using https
  • The user has visited your site twice over two separate days during the course of two weeks.

Read more about it in the official blog post from Google.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-01-10 10:11

You add the Google Sign-In button to your page with a special parameter and then users can sign in and specify which device to install your app to directly from your website.

This is the most "officially supported" implementation I know of:

https://developers.google.com/identity/sign-in/web/android-app-installs

From the link:

By adding the Google Sign-In button to your web site, you can automatically prompt your users to download your Android app over the air to their Android devices. To enable this feature, you must use the same Google Developers Console project for your Web and Android clients, and configure your web app's sign-in button.

Your web app must use the Google Sign-In button to prompt your web site users to download your app the first time that they sign in. This feature is enabled by adding the apppackagename parameter to your sign-in button.

查看更多
地球回转人心会变
4楼-- · 2019-01-10 10:19

I needed that myself, so I created a jquery plugin to mimic a smart banner for Android and older iOS versions.

http://jasny.github.com/jquery.smartbanner/#android

查看更多
登录 后发表回答