I’m using a couple of plugins that require a slightly different implementation for each platform, so I need to load a different JS file if it’s iOS than if it’s Android, for example.
Also, I need to load a cordova plugin or install it if it’s Android and not if it’s iOS or vice-versa, since the plugin uses the same JS interface, it would show conflicts if it’s installed.
So, I need to install and load a plugin if it’s Android or not install the plugin and load a different JS file if it’s iOS.
The plugins are being added with meteor add cordova:cordova-plugin-name@file///…path…/, and show up in the /myAPP/.meteor/cordova-plugins file.
Any tips will be greatly appreciated,