I want to implement a web application with separate user interface for mobile and PC. Do you know how can I detect whether it is mobile or not? In general, do you have any suggestion for implementing such application in GWT?
On the client side, you can use the Navigator
class to get the platform and the user agent string:
Navigator.getPlatform
Navigator.getUserAgent
Identify devices and platforms that way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With