Get current platform?


#1

Hey can someone review this code and tell me how to proper get platform info?


#2

I modified your codepen to check the current platform. There are probably other ways to do it. If you open the codepen from the device it will alert your device.


#3

The suggested solution from brandyshea doesn’t work for me, but this does:

ionic.Platform.platform()