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
Sometimes, when you call RNLockTask.startLockTask(), you can get this error: Invalid task, not in foreground. I don't know a clear reproducible way to trigger this error yet, but i got a lot of error reportings on Sentry.
Sometimes, when you call
RNLockTask.startLockTask()
, you can get this error:Invalid task, not in foreground
. I don't know a clear reproducible way to trigger this error yet, but i got a lot of error reportings on Sentry.From further investigation i found out that this error is thrown in this part of the ActivityManagerService implementation
(line 8853: https://android.googlesource.com/platform/frameworks/base/+/android-5.0.2_r1/services/core/java/com/android/server/am/ActivityManagerService.java):
it seems that there is no focused activity, but i am almost 100% sure the
startLockTask()
is called when the app is in foreground.i submitted this ticket to raise awareness and maybe if someone has faced this issue, they might have some good insight to handle it.
The text was updated successfully, but these errors were encountered: