lovegaoshi / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, chromecast support, background mode and more!
https://react-native-track-player.js.org/
Apache License 2.0
7 stars 15 forks source link

[Feature Request] Headless start from aa #32

Closed lovegaoshi closed 1 month ago

lovegaoshi commented 3 months ago

see https://github.com/birkir/react-native-carplay/pull/158 for an ios implementation; the key here is to somehow initialize the js engine and make it a singleton that is sharable between the activity and the service. the current proposed implementation is to avoid all of this together and just force launch the activity from service.

does headlessJsTaskService start the reactContext? whatelse is needed to make js respond to service?

lovegaoshi commented 2 months ago

reactInstanceManager.createReactContextInBackground();

lovegaoshi commented 1 month ago

react native/js does start from service..? image