I need help, I do not know how to make a function call in the background when the application is closed, it only works if it is open or minimized.
platform.ready().then(() => {
this.backgroundMode.setDefaults({ silent: true });
this.backgroundMode.enable();
backgroundMode.on('enable').subscribe(() => {
setInterval(() => {
this.getBusqueda();
}, 5000);
});