1

After updating app in android 12 and try to run app in android 12 device and simulator facing issue for crashing.

Here is issue. androidx.media.session.MediaButtonReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'

Resolve With use of android:exported="true" fixed issue for run app but service not start once player on in app. so again crash app.

2 Answers2

0

Please check the Github for React-Native-Track-Player.

There is a Beta version for use with Android 12.

Kevin Tucker
  • 3
  • 1
  • 4
0

Following this question, anyone was able to patch the package to make it work on Android 12? Using a non-final version seems more buggy than just adapting the stable one.

RamaProg
  • 1,106
  • 7
  • 15