Skip to content

Commit

Permalink
Remove static MediaButtonReceiver in AndroidManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
biomancer committed Feb 1, 2023
1 parent b2f46a6 commit 8575e8f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@
<application>

<!-- The main service, handles playback, playlists and media buttons -->
<service android:name=".service.MusicService" android:enabled="true" android:exported="true">
<service android:name=".service.MusicService" android:enabled="true" android:exported="true" android:foregroundServiceType="mediaPlayback">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</service>

<!-- A receiver that will receive media buttons. Required on pre-lollipop devices -->
<receiver android:name="androidx.media.session.MediaButtonReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>

</application>

</manifest>

0 comments on commit 8575e8f

Please sign in to comment.