Plugin version: from github
Platform: Android
OS version 13.0
Device manufacturer / model: XIAOMI POCO F3
Cordova version (cordova -v) android 12.0.0
Cordova platform version (cordova platform ls): 12.0.0
plugin provided for ready:
code:
var bgGeo = window.BackgroundGeolocation;
bgGeo.ready({
allowIdenticalLocations:true
}, function(state) { // <-- Current state provided to #configure callback
// 3. Start tracking
console.log('BackgroundGeolocation is configured and ready to use');
if (!state.enabled) {
bgGeo.start().then(function() {
console.log('- BackgroundGeolocation tracking started')
});
}
})
Expected Behavior
console.log('BackgroundGeolocation is configured and ready to use');
Actual Behavior
uncaught TypeError: Cannot read properties of undefined(reading'ready')
Plugin version: from github Platform: Android OS version 13.0 Device manufacturer / model: XIAOMI POCO F3 Cordova version (
cordova -v
) android 12.0.0 Cordova platform version (cordova platform ls
): 12.0.0plugin provided for ready:
code:
Expected Behavior
console.log('BackgroundGeolocation is configured and ready to use');
Actual Behavior uncaught TypeError: Cannot read properties of undefined(reading'ready')
Steps to Reproduce