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
Post a Comment