-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return MPRemoteCommandHandlerStatus required for iOS 13 #158
base: master
Are you sure you want to change the base?
Conversation
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 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:
|
@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? |
@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 For anyone still trying, after commit |
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
#157
Steps to test
MusicControls.create({..
on iOS 13 results in app crashMusicControls.create({..
on iOS 13 results in app not crashing