I have an meteor app that is deployed for both ios and android device and i want certain code to run on only ios device and not on android. I know that I can detect device using meteor device-detection package like
Meteor.Device.isPhone()
But is there any possible way can know if its an android or iOS device.
EDIT: I have created bundle using meteor cordova.
Here's a global helper that should do the trick as far as detecting iOS:
And another for Android:
To use anywhere in client js:
And of course, to use in html template markup: