我使用這個 php 代碼來檢查用戶是從 Webview 還是從瀏覽器打開我的網站,我想獲取 Playstore 上的“Android App WebView”apk 的 ID,但我沒有找到它,我也想要“谷歌瀏覽器”apk 的 ID。ID 示例:“com.facebook.orca”。
if($_SERVER['HTTP_X_REQUESTED_WITH'] == "com.facebook.orca")
echo 'var isWebView=true;';
else
echo 'var isWebView=false;';
uj5u.com熱心網友回復:
請注意,apackage name在 Google Play 的 url 中,一個id引數...
https://play.google.com/store/apps/details?id=com.android.chrome&hl=en
您可能可以在某些“高級”設定中列出設備中的所有軟體包名稱,或者只需在 Play 商店中找到該應用程式
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/400705.html
上一篇:如何在您的centos8服務器和外部服務上設定通過php代碼發送的時事通訊
下一篇:AndroidStudio應用程式模塊中的重復類androidx.lifecycle.DefaultLifecycleObserver(Java)
