Open yoojene opened 5 years ago
this is very important!
Any news? Bug still present.
I'm also facing this issue. It's working on iOS 12.*
@homerours Any news? in iOS 13 does not work anymore :cry:
@homerours Any news? in iOS 13 does not work anymore 😢
This fixed it for me
Does this plugin work for anyone AT ALL? I mean is it possible to have this fully working as intended? I've been using it for over a year on Android with no issues but never worked on iOS no matter the webview engine I use, etc...
Does this plugin work for anyone AT ALL? I mean is it possible to have this fully working as intended? I've been using it for over a year on Android with no issues but never worked on iOS no matter the > webview engine I use, etc...
It has worked for me on both iOS and Android for over a year. The store/shipping builds still seem to work on iOS 13. However, I can't build a new working app with Xcode 11, or the Beta Xcode 13.2. I tried MarcelvanGastel's modifications twice, but that seems to cause build issues on my Ionic 3 app:
(node:22770) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'toLowerCase' of undefined
@homerours Any news? in iOS 13 does not work anymore 😢
This fixed it for me
Still crash for me :(
Made some updates to the PR, latest commits work for me - tested in iOS 13.1.2
Made some updates to the PR, latest commits work for me - tested in iOS 13.1.2
I fixed my build issue. The audio does start playing..then I get: Playing stream with AVPlayer & default rate *** Assertion failure in -[MPSkipIntervalCommand addTarget:action:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/MediaPlayer/MobileMusicPlayer-4017.101.15/SDK/MPRemoteCommand.m:134
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unsupported action method signature. Must return MPRemoteCommandHandlerStatus or take a completion handler as the second argument.'
Did you modify other routines other than remoteEvent, playEvent, pauseEvent, nextTrackEvent prevTrackEvent returning MPRemoteCommandHandlerStatusSuccess?
Update I did get this to work if I comment out // hasSkipForward: true, // show skip forward button, optional, default: false // hasSkipBackward: true, // show skip backward button, optional, default: false This allows the audio to play, but I no longer have the skip buttons on the lock screen
I tried updating skipForwardEvent() and skipBackwardEvent() to be of type and return MPRemoteCommandHandlerStatus, but that didn't correct the exception if I set hasSkipForward /hasSkipForward to true
Hello this issue is fixed in this repo : https://github.com/ghenry22/cordova-music-controls-plugin
cordova plugin remove cordova-plugin-music-controls
cordova plugin add https://github.com/ghenry22/cordova-music-controls-plugin --save
Hello this issue is fixed in this repo : https://github.com/ghenry22/cordova-music-controls-plugin
cordova plugin remove cordova-plugin-music-controls cordova plugin add https://github.com/ghenry22/cordova-music-controls-plugin --save
Thank you!! This has the lock screen skip-controls enable now when I set them to be true! Everything seems to work in my app as before, as it did on the previous version of iOS!
After upgrading to iOS 13, the plugin crashes the app as soon as the
MusicControls.create({..
is called.This happens on device and in the simulator