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
When the app is started in the background (Headless JS) from for example a JobScheduler the AppState.currentState is initially "active" even though it should return "background". When called later on it gives "uninitialized" which is not documented.
This probably stems from AppState not taking into account how HeadlessJS is run.
The default value defined here is what is causing this issue since this callback is not called before one tries to access the currentState property.