Background mode plugin silent mode


#1

I’m trying to activate silent mode so that the notification doesnt show up when the app is minimized.

Im trying this code

    this.backgroundMode.enable();
    this.backgroundMode.configure({silent: true});

but it is not working. I must not be understanding the docs correctly.

Can I not just simply pass an object with the silent option set to true like I am doing.

Thanks in advance for the help!


#2

Seems as though a few people have been having this issue so I used this suggestion and it worked!

this.backgroundMode.setDefaults({
  title:  'TheTitleOfYourProcess',
  text:   'Executing background tasks.',
    silent: true
});