question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin crashes on iOS 13

See original GitHub issue

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

2019-08-27 11:55:58.144956+0100 App - Test[37550:871750] *** 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:
(
	0   CoreFoundation                      0x000000010c30bb6e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x000000010bc7bf57 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010c30b8e8 +[NSException raise:format:arguments:] + 88
	3   Foundation                          0x000000010adbac29 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
	4   MediaPlayer                         0x0000000109e77ad4 -[MPRemoteCommand addTarget:action:] + 1154
	5   Pfizeryanınızda - Test            0x0000000107ee5a0a -[MusicControls registerMusicControlsEventListener] + 394
	6   Pfizeryanınızda - Test            0x0000000107ee4087 -[MusicControls create:] + 407
	7   Pfizeryanınızda - Test            0x0000000107ff4f84 -[CDVCommandQueue execute:] + 900
	8   Pfizeryanınızda - Test            0x0000000107eb90ef -[CDVWKWebViewEngine handleCordovaMessage:] + 207
	9   Pfizeryanınızda - Test            0x0000000107eb8f6b -[CDVWKWebViewEngine userContentController:didReceiveScriptMessage:] + 187
	10  Pfizeryanınızda - Test            0x0000000107ebab3e -[CDVWKWeakScriptMessageHandler userContentController:didReceiveScriptMessage:] + 126
	11  WebKit                              0x000000010907f939 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyERKNS0_13FrameInfoDataERN7WebCore21SerializedScriptValueE + 217
	12  WebKit                              0x00000001091fa7a0 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageERN3IPC10ConnectionEyRKNS_13FrameInfoDataEyRKNS1_13DataReferenceE + 168
	13  WebKit                              0x00000001093fc5fd _ZN3IPC13handleMessageIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyEMS5_FvRNS_10ConnectionEyRKNS4_13FrameInfoDataEyRKNS_13DataReferenceEEEEvS7_RNS_7DecoderEPT0_T1_ + 116
	14  WebKit                              0x0000000108f0fa3e _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 114
	15  WebKit                              0x000000010914506c _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 24
	16  WebKit                              0x0000000108efafd8 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 108
	17  WebKit                              0x0000000108efdaee _ZN3IPC10Connection24dispatchIncomingMessagesEv + 586
	18  JavaScriptCore                      0x000000011dae29b4 _ZN3WTF7RunLoop11performWorkEv + 228
	19  JavaScriptCore                      0x000000011dae2c42 _ZN3WTF7RunLoop11performWorkEPv + 34
	20  CoreFoundation                      0x000000010c26f371 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	21  CoreFoundation                      0x000000010c26f301 __CFRunLoopDoSource0 + 81
	22  CoreFoundation                      0x000000010c26ead4 __CFRunLoopDoSources0 + 180
	23  CoreFoundation                      0x000000010c2697ef __CFRunLoopRun + 1263
	24  CoreFoundation                      0x000000010c268fd6 CFRunLoopRunSpecific + 438
	25  GraphicsServices                    0x00000001115c29f8 GSEventRunModal + 65
	26  UIKitCore                           0x000000011b9f4722 UIApplicationMain + 1621
	27  Pfizeryanınızda - Test            0x0000000107e6d141 main + 65
	28  libdyld.dylib                       0x000000010d6206ad start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:8
  • Comments:12

github_iconTop GitHub Comments

3reactions
RomainDev25commented, Oct 25, 2019

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
0reactions
jb280commented, Oct 27, 2019

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Crash in ios 13 version. · Issue #179 - GitHub
Following are the logs generated in iOS version 13. Works fine in previous pervious. Please update ASAP. Unexpectedly found nil while ...
Read more >
Extension frequently crashes for a large number of users
We have a longstanding issue that has a growing user base impacted by our Safari App Extension. These users are experiencing frequent crashing...
Read more >
Photo-library plugin crash in ios version 13 - Ionic Forum
Hi My my app crashes when user wants to fetch images from library in ionic 3. Photo-library plugin works fine in iOS 12....
Read more >
[Image Picker plugin] [Image Picker plugin] its crashing on ios ...
As soon as I get the alert for the permission to access the photo the app crashes.The app crashes if I select selected...
Read more >
Flutter app crashes for iOS build on startup - Stack Overflow
1 and updated my iPhone device to latest 15.2 and Xcode 13.0 and used the latest one 13.2.1. But now the application runs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found