You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Android 11 I've noticed when using a debug / release apk the setTimeout method only triggers when the app is in the foreground. For example using the following block of code:
the timer will start when the app is open and 'hello' will be logged fine. However when the app is backgrounded 'hello' will only get logged when the app is foregrounded.
Interestingly when the physical android device is attached and running in debug mode there are no problems and functionality is as expected.
Any help on this one?
The text was updated successfully, but these errors were encountered:
Using Android 11 I've noticed when using a debug / release apk the setTimeout method only triggers when the app is in the foreground. For example using the following block of code:
const activateTimer= BackgroundTimer.setTimeout(() => { console.log('hello'); }, 1000);
the timer will start when the app is open and 'hello' will be logged fine. However when the app is backgrounded 'hello' will only get logged when the app is foregrounded.
Interestingly when the physical android device is attached and running in debug mode there are no problems and functionality is as expected.
Any help on this one?
The text was updated successfully, but these errors were encountered: