ghenry22 / cordova-plugin-music-controls2

A Cordova plugin displaying music controls in notifications (cordova-plugin-music-controls)
MIT License
59 stars 59 forks source link

Lockscreen: previous / next controls are visible even when hasPrev and hasNext have been set to false #76

Open srividya-sharma opened 2 years ago

srividya-sharma commented 2 years ago

Hi, Thank you for this wonderful plugin. I am using it for Android and will soon be using it for iOS as well. One issue that I am facing is that, in the lockscreen, previous / next controls are visible even when hasPrev and hasNext have been set to false. In the notifications area, they are not being shown - works as expected. Please note that the actions from lockscreen remote and from notifications area work perfectly well. So, there is no problem with the code there. Here is my configuration: this.musicControls.create({ track: this.track.title, artist: artist, isPlaying: true, hasPrev: false, hasNext: false, hasClose: true, dismissable: true, // All icons default to their built-in android equivalents playIcon: 'media_play', pauseIcon: 'media_pause', prevIcon: 'media_prev', nextIcon: 'media_next', closeIcon: 'media_close', notificationIcon: 'notification' });

Please let me know if there is a way to solve this problem. Thank you.