0
Want to integrate this cordova plugin in ionic framework : https://github.com/Secullum/cordova-plugin-devoptionschecker. to see if the app is running in android’s Developer mode or not.
But can’t seem to make it work.
app.component.ts
Issues noted:
1)The author hasnt mentioned any examples for integration with ionic/typescript based app.
2)Till now , I have written the following code:
declare var devoptions;
constructor()
{
platform
.ready()
.then(() => {
devoptions.check((bool) => {
console.log("Successfully called : ", bool);
}, (err) => {
console.log('Failed :', err);
});}
})
}
Developing on Ionic-Angular Framework.
It seems there is a problem in integration because I see error : devoptions is undefined