Multiple simulated events should succeed in executing the registered handler
Actual Behavior
The first registered task completes, but subsequent calls error with "No handler registered error"
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No launch handler registered for task with identifier {public}@'
Steps to Reproduce
Note: I'm putting my background registration code inside of a Context Wrapper, and a useEffect hook. I'm not sure that breaks things? What happens whe Background.configure is called multiple times (e.g. when the dependencies in useEffect change)?
Your Environment
Expected Behavior
Multiple simulated events should succeed in executing the registered handler
Actual Behavior
The first registered task completes, but subsequent calls error with "No handler registered error"
Steps to Reproduce
Relevant code:
context/backgroundTasks.tsx
App.tsx
Context
I'm trying to log the user's steps to my server, even while the app is closed.
Debug logs