After adding a Cordova plugin using meteor add cordova:[email protected], I see this plugin installed using meteor list.
However on the desktop browser console, I can't seem to find any methods exposed by cordova:org.apache.cordova.dialogs, such as navigator.notification.alert. How do we do something like
navigator.notification.confirm(
    'Hello there',
    onConfirm,
    'Welcome',
    ['Hey']
)
Also tried cordova:[email protected] and the device object the plugin is supposed to expose globally cannot be found.
Meteor.startup(function() {
    console.log(device.cordova)  // Uncaught ReferenceError: device is not defined
})
                The whole point of Cordova plugins is to give your JavaScript code access to some device-specific native features on mobile.
The features from Cordova plugins are not available on browsers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With