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

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

qt - Change color of QGraphicsView rubber band -

c++ - Print Preview in Qt -