Hybrid Application Developer Question: Download Questions PDF
How to detect a platform (Android or iOS) at runtime in Ionic application?
Answer:
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).
Download Hybrid Application Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what are CDNs in jQuery? Why do we use it? | Explain me what are the storage option does PhoneGap can access? |