0

I am wondering how to access the now playing info of a track that is playing in the background of an iOS device using React Native. I know that there are many packages, such as react-native-track-player, which can play music on the player and get data. THAT IS NOT WHAT I AM TRYING TO DO. I am not trying to play audio from my app by creating a player, I just want to find info on the music that the user plays using any app on the phone, such as Youtube Music, Spotify, Apple Music, and more, simply by getting the metadata using React Native. Is there a way to do this without writing native code? More specifically, I want the data shown on the lock screen or control center when background audio is being played. If there is a way that it works on Android that would also be good, but I want to reduce the scope to iOS for the sake of an answer. Thanks.

Raamiz Abbasi
  • 261
  • 4
  • 14

0 Answers0