简体   繁体   中英

Is there any way to get the id of "Android WebView" app?

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;';

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM