Hi everyone,
I’m using the plugin background mode but i have error “Plugin not installed” when i try to get boolean value from BackgroundMode.isEnabled() function.
My steps:
1/ "ionic plugin add cordova-plugin-background-mode"
2/ import {BackgroundMode} from ‘ionic-native’;
3/ Run app on ios by ionic view
My code:
BackgroundMode.enable();
BackgroundMode.isEnabled().then((data) =>{alert(data);},(error)=>{alert(error)});
Somebody can help me ? thanks