Show only on Android devices


I have entries in my template file, which i want only show, when the app run on Android devices, not on iOS.
Is it possible to hide them, when the app runs on iOS ?

When running on android it adds a class called “platform-android” to the top body tag i believe, you can use some css with that to hide/show things on different platforms.

Alternatively there is the ionic.Platform utility class, you can call the isAndroid functions on that, perhaps stick an is_android variable on $rootScope from within an block and use and use ng-show/hides if you want access to it in all your template files.


Thx, works with the class platform-andorid.