Hi All,
I want to implement a web application with separate user interface for mobile and pc. Do you know how can I detect whether it's mobile or not? And in general, Do you have any suggestion for implementing such application in gwt?
Thanks Marjan
Hi All,
I want to implement a web application with separate user interface for mobile and pc. Do you know how can I detect whether it's mobile or not? And in general, Do you have any suggestion for implementing such application in gwt?
Thanks Marjan
On the client side you can use the Navigator class to get the platform and the user agent string:
Navigator.getPlatform
Navigator.getUserAgent
and identify devices and platforms that way.
Hope this helps!
There were a few posts regarding handling the mobile version of Safari in GWT and touch applications on Lombardi Development blog:
There might be some other posts there that could interest you - have fun digging :)