cordova - Ionic 2 - Detect if screen is locked -


i searched long time , not find result.

i need event or method in ionic 2 check stat of phone display - display locked or unlocked.

another option check if user active. think lockscreen better.

try platform customization

constructor( private platform: platform ) { platform.ready().then(() => {         this.platform.pause.subscribe(() => {         console.log('[info] app paused');     });      this.platform.resume.subscribe(() => {         console.log('[info] app resumed');     }); }); 

}


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -