157
react-native-music-control
complete
Ladislav Soukup
This will allow expo app to display Now playing Info on lockscreen / control center widget and handle control events.
This will extend the Audio background playback support.
Axel Delafosse
Hi everyone!
You can now use React Native Music Control with Expo.
Start by creating a custom development client for your Expo app and then install React Native Music Control.
Here is the configuration required for audio playback in background:
iOS: Enable audio playback in background via your app.json https://docs.expo.dev/versions/latest/sdk/audio/#playing-or-recording-audio-in-background-ios
Android: All good! Expo already includes the required settings.
Enjoy :)
Activity
Newest
Oldest
Fatih KÖSE
Android crashes automatically.
As far as I checked FOREGROUND_SERVICE is due to authorization
Axel Delafosse
complete
Axel Delafosse
Hi everyone!
You can now use React Native Music Control with Expo.
Start by creating a custom development client for your Expo app and then install React Native Music Control.
Here is the configuration required for audio playback in background:
iOS: Enable audio playback in background via your app.json https://docs.expo.dev/versions/latest/sdk/audio/#playing-or-recording-audio-in-background-ios
Android: All good! Expo already includes the required settings.
Enjoy :)
Given Nyauyanga
Axel Delafosse: I have tried adding a custom plugin into my app and can't get expo app.js to recognise my custom plugin. Can you please help with some example of how you achieved it?
Michael Wood
Given Nyauyanga: I suggest you post a message to forums.expo.dev to explain what you're trying to do, what you have tried so far and what is not working.
Jesse Mezini
Given Nyauyanga: I followed react-native-music-controls instructions and added FOREGROUND_SERVICE to android/app/src/main/AndroidManifest.xml then "expo prebuild" and then "eas build --profile development --platform android". I didn't added custom plugin, I don't know if this is the right way, but everything is working
Michael Wood
Jesse Mezini: That is definitely one way to do it, but that is the Bare workflow. If you write a config plugin to do it (or ask the authors of the
react-native-music-controls
library to write one) then you can still use the Managed workflow.Juan Pablo González
This could be a game changer in terms of system wide integration when using expo audio in a project!
G
Green
Is this the feature that lets you control the player from in LockScreen? If so please please please implement it. Thanks.
Ruth Akintunde
Hello expo. Please let's achieve this! Thank you.
Venkata Sunil Kumar Anumolu
Is it added in expo SDK 38?
If not any idea in what version this feature will be available.
This feature is really important for me as I am building a music app which really needs this sort if feature (music controls on lockscreen and notification)
Ladislav Soukup
Venkata Sunil Kumar Anumolu: no, it is still "planned" as part of - https://expo.canny.io/feature-requests/p/audio-playback-in-background
Don S.
Please integrate with
react-native-track-player
(the bluetooth speaker playback control too) Thank you.David Goldstein
Don S.: bump
Paolo Santarsiero
Don S.: i try to integrate it but it gives to me a error as STATE_NONE when i try only to import it in a functional component. Are you sure that Expo supports it?
Marc Pope
Paolo Santarsiero: they do not.
Axel Delafosse
Don S.: You can now use
react-native-track-player
! Cf. the pinned comment here: https://expo.canny.io/feature-requests/p/audio-playback-in-backgroundDanny Ricciotti
I am really hoping for this, as I am developing a Podcast (sort of) app which needs to show the user the audio controls on the lock screen. I'd prefer not to eject just for this as I am in love with using Expo for development.
Is it possible to make a fork of the Expo client that includes this native module? I am already using the custom Expo client (due to permissions and background modes). I would be happy to customize it in order to gain support. Thanks! :)
Danilo Canalle
Please integrate with react-native-track-player. Solve all this!
Paolo Santarsiero
Danilo Canalle: i try to integrate it but it gives to me a error as STATE_NONE when i try only to import it in a functional component. Are you sure that Expo supports it?
Danilo Canalle
Paolo Santarsiero: Its what I said, Expo needs to supports it.
I needed to eject expo to continue my project. =/
Load More
→