phiamo / capacitor-plugin-playlist

A capacitor migration of cordova-plugin-playlist
27 stars 20 forks source link

iOS: hide lock screen player after calling `clearAllItems()` #67

Open chungmarcoo opened 1 year ago

chungmarcoo commented 1 year ago

I try to call clearAllItems method after my custom music player is closed, however the music player in lock screen still visible. Is there any way to get rid of the lock screen player after calling clearAllItems. In addition, I tried to remove the following code from Info.plist, the lock screen music player will be gone after the music is stopped by the system. But the background playing feature is needed from my own app. Is there any solution? Thanks

    <key>UIBackgroundModes</key>
    <array>
        <string>audio</string>
        <string>fetch</string>
    </array>
dasantonym commented 1 year ago

+1 I've got the same problem on iOS. The lock screen player stays visible after calling clearAllItems. Android seems to work properly.