0 votes
in Ionic by
How can you detect a platform (Android or iOS) at runtime in Ionic application?

1 Answer

0 votes
by

Ionic provides platform classes: when the application is loaded, Ionic adds CSS classes to the <body> tag. For example, on iOS devices, Ionic adds platform-ios class to <body> tag. Ionic also adds OS version classes such as platform-ios8 (for iOS 8) and platform-android4_4 (for Android 4.4).

...