Creating an android smart app banner

AndroidIosAndroid LayoutAndroid WidgetIos6

Android Problem Overview


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"/>

Android Solutions


Solution 1 - Android

> Since Chrome 44 Beta you can push your app in Chrome for Android with > a native app install banner on your website.

Please see the answer below.


Old answer

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

Solution 2 - Android

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 docs from Google.

Solution 3 - Android

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.

Solution 4 - Android

There are two APIs available:

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1781238View Question on Stackoverflow
Solution 1 - AndroidArnold DanielsView Answer on Stackoverflow
Solution 2 - AndroidemccrackenView Answer on Stackoverflow
Solution 3 - AndroidKirk ElliottView Answer on Stackoverflow
Solution 4 - AndroidSebas LGView Answer on Stackoverflow