Specific code depending on the platform the App is running


Hi there!

I’m finishing my App, it works great but I’m wondering if it is possible to add specific code depending on the platform.

Something similar to the Meteor.isCordova, isServer and isClient methods but whit isAndroid and isiOS.

if ( Meteor.isAndroid() ) {
     console.log("I'm in Android");
} else if ( Meteor.isIos() ) { 
     console.log("I'm in iOS");

Thanks in advance!


Use device.platform.