Rolamix / cordova-plugin-playlist

🎶 A Cordova plugin for Android and iOS with native support for audio playlists, background support, and lock screen controls 🎶
MIT License
33 stars 33 forks source link

Terminating app due to uncaught exception 'NSInternalInconsistencyException' #36

Closed alexwang2013 closed 5 years ago

alexwang2013 commented 5 years ago

Expected Behaviour

Actual Behaviour

2019-10-27 21:05:48.945390+0900 YinXi[2355:381881] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unsupported action method signature. Must return MPRemoteCommandHandlerStatus or take a completion handler as the second argument.' First throw call stack: (0x1841e098c 0x183f090a4 0x1840e2d1c 0x1845188f4 0x19057ef60 0x102a7c570 0x102a75e30 0x102a736c0 0x102a9156c 0x102a60648 0x102a604b0 0x102a62870 0x18b8350e0 0x18b9b8fc4 0x18bb883e4 0x18b6b50e8 0x18b902630 0x18b69f740 0x18b6a2590 0x192d64a6c 0x192d64d2c 0x18415e7e0 0x18415e738 0x18415ded0 0x18415901c 0x1841588bc 0x18dfc4328 0x1881ee6d4 0x102a3c964 0x183fe3460) libc++abi.dylib: terminating with uncaught exception of type NSException

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

iOS 13.1.2

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Cordova CLI version and cordova platform version

cordova --version                                    # e.g. 6.0.0
cordova platform version android                     # e.g. 4.1.1

Plugin version

cordova plugin version | grep phonegap-plugin-push   # e.g. 1.5.3

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

alexwang2013 commented 5 years ago

fixed this issue in this commit

https://github.com/alexwang2013/cordova-plugin-playlist/commit/b6b1671b1749dbf73bb1ebc140b28a897f880c78