question

harshali avatar image
harshali asked harshali commented

How do I know the request is coming from the Android app using WebView?

When the application will be uploaded on the app market, does the requests show from which device it is coming or from which OS it is coming from? Need this for Analytics purpose.
App Market
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Frank Faustino avatar image
Frank Faustino Deactivated answered harshali commented
Hi, @Harshali.
If you use the userAgent property in the Navigator object ( https://www.w3schools.com/jsref/prop_nav_useragent.asp), you can glean all sorts of information about your user's device and platform.

In the screenshot below, is a Clover Mini 2 using webview through a Clover Android app. Using userAgent, I was able to determine its platform is Android 8.1.0 on Linux and the hardware model is C302U. device-2019-06-11-103702.png

Below is a table of the various Clover devices and their model numbers and target Android SDK version.



1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

harshali avatar image harshali commented ·

@Frank Faustino, It worked. Thanks!

0 Likes 0 ·

Welcome to the
Clover Developer Community