1.

In an Ionic application, how do you identify a platform (iOS or Android) at runtime?

Answer»

Ionic offers a platform service for obtaining information regarding the current device.

  • All of the PLATFORMS linked with the device are returned by the platform method.
  • It also indicates if the application is being seen on a tablet, mobile device, or browser, as well as the platform used, such as Android or iOS.
  • Ionic applies CSS CLASSES to the <body&GT; tag when the application is loaded on the device. Ionic, for example, adds the platform-ios class to the <body> tag on iOS DEVICES.


Discussion

No Comment Found