Closed sithwarrior closed 6 days ago
We are experiencing some users that hit the following error (small percentage)
cordova is not defined
I suspect that it might be caused by this plugin calling cordova directly, the same issue seems to have happened in another plugin outlined here: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/243
in short its caused by the plugin calling cordova.exec directly instead of first const exec = require('cordova/exec');
cordova.exec
const exec = require('cordova/exec');
As also mentioned in the issue, the official plugins use this pattern
@sithwarrior I'd be happy to accept a PR for this if you have time?
@peitschie Made a PR and tested the change in my own app without issue
This is released in 1.7.6
Sorry for the delay!
We are experiencing some users that hit the following error (small percentage)
cordova is not defined
I suspect that it might be caused by this plugin calling cordova directly, the same issue seems to have happened in another plugin outlined here: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/243
in short its caused by the plugin calling
cordova.exec
directly instead of firstconst exec = require('cordova/exec');
As also mentioned in the issue, the official plugins use this pattern