Open yoojene opened 5 years ago
Thanks for putting this together. I ran into this issue as well, and can confirm that it fixes it.
thank you! Will be added to the master?
@yoojene @drewrygh as I can see, you've managed to make it works on iOS 13. Could you mind to share a working sample code? I've tried by copy/paste the example in the readme but no luck. I don't get any error, it just doesn't work. I've tried with your branch too, but again no luck.
Thanks
@yoojene it works for me. Thanks a lot
Yes! It works! Thanks a lot!
I can confirm this fixes the crashing on iOS13 in my Ionic app by doing the following:
ionic cordova plugin remove cordova-plugin-music-controls
ionic cordova plugin add git+https://github.com/homerours/cordova-music-controls-plugin.git#90e3fe8838c3151bd8e51901079eb34740ec87c9ionic
@fdambrosio I've managed to make it works. I'm using this plugin to control a remote player. I didn't know the device has to play something to make it works (on iOS).
Is this project dead? Does anybody maintain it? Will this get merged in the foreseeable future?
@tbergeron yes, see the readme.
Does anyone manage to make the callbacks work on the create method? it seems to be never called
Noticed this PR was suddenly not working , have added MPRemoteCommendHandlerStatus
return values for skipForwards
and skipBackwards
actions
For anyone still trying, after commit 75179c8
the plugin works for me on iOS 13.1.2
PR summary
Apple API docs state that functions with
MPRemoteCommandEvent
params should returnMPRemoteCommandHandlerStatus
.Current implementation has these as returning
void
, which is crashing apps using this plugin in iOS 13.PR returns
MPRemoteCommandHandlerStatusSuccess
in all actions of this typeIssue(s) related
https://github.com/homerours/cordova-music-controls-plugin/issues/157
Steps to test
MusicControls.create({..
on iOS 13 results in app crashMusicControls.create({..
on iOS 13 results in app not crashing