hellcat707hp / GTRadio

An open-source, custom radio player for Android designed to produce similar functional results to the radios found in the Grand Theft Auto series of games.
GNU General Public License v3.0
9 stars 0 forks source link

Fix Player Notification for Android 11 #2

Closed hellcat707hp closed 1 year ago

hellcat707hp commented 3 years ago

When playing music in Android 11 (at least on the emulated Pixel 4 device), showing the player notification causes the device's system UI to crash in a loop until the notification is killed.

Many attempts at fixing this have been tried, but to no avail resulting in one portion of commit e723aff9657b40a4d867f9f0c374d6de20adecf9 where the ability to show the notification was turned off for Android 11 devices inside GTRadioNotificationManager.

The belief is this has something to do with the images/icons used in the notification, but attempts to correct that also failed. (See this StackOverflow post)

Might need some help on this one!

  1. Is this only on my Pixel 4 emulator device or is it happening for all Android 11 devices?
  2. What's the root cause?