I have tried running this function on ios but it doesn't seem to be working or maybe I'm not using it right. We need a proper example for this.
BackgroundService.on('expiration', () => {
console.log('I am being closed :(');
});
await BackgroundService.start(veryIntensiveTask, options);
I have tried running this function on ios but it doesn't seem to be working or maybe I'm not using it right. We need a proper example for this.
BackgroundService.on('expiration', () => {
console.log('I am being closed :(');
});
await BackgroundService.start(veryIntensiveTask, options);