php - HTTP request coming from mobile browser or an app? -


i want know whether request coming android app, ios app or mobile browser.

i'm able distinguish between android app & browser.

i'm using following code distinguish:

if($_server['http_x_requested_with'] == 'com.example.user' ){     $curos='android'; } else{     $curos='mobile'; } 

does ios make such request? or have better solution? need because i'm using webview apps both android & ios platform.

any appreciated.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -