I got Uncaught TypeError: cordova.plugins.backgroundMode.onactivate is not a function when i try to run my application on background.
I’m unable to solve the issue can anyone help me with this thanks
I tried uninstall and install the plugin
this.platform.ready().then(() => {
this.backgroundMode.enable();
this.backgroundMode.on(‘activate’).subscribe(() => {
// logic
});
});
Uncaught TypeError: cordova.plugins.backgroundMode.onactivate is not a function