BackgroundMode plugin

I need to use BackgroundMode plugin to call a function when the application enters background mode. But I can not figure out how to use on(eventName) :frowning:
Please, can anyone give me a hint?

You should be able to use it like so

BackgroundMode.on('activate', this.backgroundMethod());

I also could not find how to use this method and this is the correct syntax which i was looking for, thanks! Unfortunately, I ran into another problem So I tried to use document.addEventListener. Pause event works fine, but document.addEventListener("resume", onResume, false); is not executed right after opening the app (from multitasking menu) but user have to click on the screen :disappointed_relieved:

I figured out that I do not need any plugin and I can use
this.platform.resume.subscribe(e => { this.onResume(); });