The problem is if nfc manager is launched after lockscreen launched you will never see 'lock' event but it's already locked. Please use lockscreen.locked instead of maintaining this.screenLocked.