Background mode is automatically unlocking the screen on ionic

0

I added background mode in conjunction with local notifications, however as soon as my application shows a notification, the screen is automatically unlocked (the current configuration does not have a screen unlock pin or any other such verification), but other notifications like google, whatsapp is shown in the lock bar of the screen and does not unlock the screen automatically, as it is done in my application. Is there any way to remove this automatic unlock?

I've tried something like:

ngOnInit(): void {
this.backgroundMode.enable();
this.backgroundMode.on('activate').subscribe(() => {
   setInterval(() => {
      this.consultaNotificacoes();
    }, 100000);
    })
}
    
asked by anonymous 29.10.2018 / 15:16

0 answers