in Ionic by
Q:
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).

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked May 20, 2020 in React JS by GeorgeBell
0 votes
asked Jul 24, 2020 in Ionic by Robindeniel
0 votes
asked May 27, 2019 in Gradle by Ankita1283
0 votes
asked Jul 24, 2020 in Ionic by Robindeniel
0 votes
asked Jul 24, 2020 in Ionic by Robindeniel
...