android - Play store download on website -


i trying place app download link on website see on various websites. need show when relevant android device views website. example of can found on fiverr.com when viewing website on android device.

tried online on how it, cannot seem find solution anywhere. have looked app indexing , have followed deep linking doesn't seem it.

you can detect android device,with js or php .

source : http://davidwalsh.name/detect-android

var ua = navigator.useragent.tolowercase();  var isandroid = ua.indexof("android") > -1; //&& ua.indexof("mobile");  if(isandroid) {      // something!      // redirect android-site?      window.location = 'http://android.davidwalsh.name';      //or      window.location = 'https://play.google.com/store/apps/details?id=com.name.name';  } 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -