v1074: Media player notification disappears, doesn't work

Report bugs & feature requests for MediaMonkey for Android and learn about the newest beta build.

Moderator: Gurus

hackbod
Posts: 3
Joined: Sun Jul 17, 2011 12:31 am

v1074: Media player notification disappears, doesn't work

Post by hackbod »

In the last month or so, still in v1074, I've been seeing a problem where the playback information isn't being handled correctly by the system: it stops showing up in the media player in the notification shade, stops showing in always-on-display, media playback buttons won't work. Force stopping the app and then resuming playback will get it to work correctly for a bit, and then it stops working at some point.

Some analysis shows that the problem is that the app starts setting PlaybackState for the MediaSession to null, so it isn't being handled correctly by the system.

Here is a log when this happens:

03-13 15:54:52.740191 1469 1469 I notification_enqueue: [10312,22457,com.ventismedia.android.mediamonkey,2131362758,NULL,0,Notification(channel=com.ventismedia.android.mediamonkey.ui.COMMON_CHANNEL_ID shortcut=null contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x50 color=0x00000000 actions=1 vis=PRIVATE),0]
03-13 15:54:52.746659 1469 1469 I sysui_multi_action: [category(757),notification_item(128),type(758),dismiss(5),subtype(759),8,notification_since_create_millis(793),21,notification_since_visible_millis(794),0,notification_since_update_millis(795),21,notification_id(796),2131362758,packagename(806),com.ventismedia.android.mediamonkey,notification_channel_id(857),com.ventismedia.android.med-7163ffdd,notification_channel_importance(858),2,notification_group_summary(947),0,notification_since_interruption_millis(1500),21]
03-13 15:54:52.746829 1469 1469 I notification_canceled: [0|com.ventismedia.android.mediamonkey|2131362758|null|10312,8,21,21,0,-1,-1,NULL]
03-13 15:54:52.940418 1469 1469 I NotificationService: Cannot find enqueued record for key: 0|com.ventismedia.android.mediamonkey|2131362758|null|10312
03-13 15:54:52.946950 1469 1469 I NotificationService: Cannot find enqueued record for key: 0|com.ventismedia.android.mediamonkey|2131362758|null|10312
martin.bohac
Posts: 241
Joined: Thu Nov 14, 2013 5:23 pm

Re: v1074: Media player notification disappears, doesn't work

Post by martin.bohac »

Hi,
you were looking at COMMON_CHANNEL_ID, but PlaybackNotification is using its own channel for notifications.

There are many improvements in the latest build 2.0.0.1079 regarding this. Anyway, if you want the playback notification to persist, go to Options/UI/Notifications/Show in the notification bar and set the value to "Always".
Post Reply