I need sheduled track play in my react native app.If sheduled time app is kill , how to play track that time?
I tried React-native-background task and react native fetch libararies but not work properly when app is killed
I need sheduled track play in my react native app.If sheduled time app is kill , how to play track that time?
I tried React-native-background task and react native fetch libararies but not work properly when app is killed
2
Answers
I don’t know exactly your case, maybe play music. I suggest you play music in service and startForegroundService keep service running when app kill like notification.
Here document: https://developer.android.com/guide/components/foreground-services.
Try to use the following libraries for running tasks in the background:
You can try with Headless JS if the above libraries are not working.