0

I need scheduled track play in my react native app. If scheduled time app is kill , how to play track that time?

I tried React-native-background task and react native fetch libraries but not work properly when app is killed

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Sep 18, 2023 at 5:39

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.