Detect platform in ionic


#1

How can i detect platform using ionic ?

Any help would be highly appreciated.


#2

Hello @mrameezraja,

To detect the platform, you can use ionic.Platform

From the doc :

  • ionic.Platform.device() => Return the current device (given by cordova).

#3

Thanks Bro…!!! @WidawskiJ