Please provide the following:
- SDK Version:
~45.0.0
- Platforms(Android/iOS/web/all): Android
- Add the appropriate “Tag” based on what Expo library you have a question on.
I’m building a bus transportation app where users can subscribe to the arrival time of a certain bus.
Basically, the user should be able to subscribe to some bus’s arrival time and get notifications every minute.
I made it using the expo-notifications
, but I also want it to be able to work in the background.
I tried using the TaskManager
and BackgroundFetch
, but documentation doesn’t explicitly provide a way to pass props/data to a defined task.
Basically the flow should work like this:
User opens app → subscribes to bus #55 → should receive a notification about bus #55’s arrival time every minute in background.
I’m struggling with the part of passing the bus number to the task.