I use this php code to check if the user open my website from a Webview or from a browser and i want to get the id of “Android App WebView” apk which is on the playstore but i don’t find it and i also want the id of “Google Chrome” apk. Id example: “com.facebook.orca”.
if($_SERVER['HTTP_X_REQUESTED_WITH'] == "com.facebook.orca") echo 'var isWebView=true;'; else echo 'var isWebView=false;';
Advertisement
Answer
note that a package name
is in url of Google Play, an id
param…
https://play.google.com/store/apps/details?id=com.android.chrome&hl=en
you can probably list all package names from device in some “advanced” settings or just find an app for that in Play Store