Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does 'meta name="google-play-app"' work?

Tags:

html

android

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 your visitor about the app, and lead him to it in the appstore. Now, I've found some vage reference on the nets to the android version:

<meta name="google-play-app" content="app-id 

But I can't find any trusted reference to it. So I'm asking the question here: Does this meta-tag work on Android?

like image 951
Borniet Avatar asked Oct 14 '13 09:10

Borniet


People also ask

Is Meta available on Play Store?

Does this meta tag works in Android ? No.

Can Google Play apps have the same name?

Not sure about Microsoft Store, but with Android and iOS apps are identified by app id. You can't have multiple apps with the same app id. The name string is more superficial, it isn't used as a unique key in the app stores - it's more of a visual thing client side.

Can I change my app name on Play Store?

Open Google Play Console and select the App you want to change. Go to Store Listing and in Title Field enter the NEW NAME . Submit at the bottom of the page.


2 Answers

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:

<meta name="google-play-app" content="app-id=com.mygood.id"> 

Then include smart banner:

<link rel="stylesheet" href="jquery.smartbanner.css" type="text/css" media="screen"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> <script src="jquery.smartbanner.js"></script> 

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

like image 76
trante Avatar answered Sep 19 '22 23:09

trante


You could look at adding this to your web app manifest instead. At least for Chrome and FireFox.

When adding the properties prefer_related_applications and related_applications along with name and icons you should get prompted.

Example copied from developer.google.com:

"prefer_related_applications": true, "related_applications": [   {     "platform": "play",     "id": "com.google.samples.apps.iosched"   } ] 
like image 25
gwest7 Avatar answered Sep 23 '22 23:09

gwest7