@jbalchun wrote:
I'm trying to use the plugin here: https://github.com/katzer/cordova-plugin-local-notifications
I'm not using ngCordova, and I'd prefer not to. I'm scheduling the call as basically as possible, surely a plugin should never bring down the app with an unhandled exception?
Calling a notification as follows. This was working fine until i tried to clearAll().
cordova.plugins.notification.local.schedule({ text: "Delayed Notification", at: timeUp, led: "FF0000" });
Using the latest version with ionic, getting the following error, app is suspending and crashing. Like i said it was working fine until i tried to cancel notifications.
This issue was reported in prior versions of the plugin, but this version is supposed to be patched, yet I'm still getting the issue and I can't find anywhere to apply the fix. (Don't really know Obj C at all)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'unable to serialize userInfo: (null)' *** First throw call stack: ( 0 CoreFoundation 0x000000010933fc65 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000010b776bb7 objc_exception_throw + 45 2 UIKit 0x0000000109c0d567 -[UIConcreteLocalNotification userInfo] + 0 3 gainApp 0x00000001090e3c9f -[UILocalNotification(APPLocalNotification) initWithOptions:] + 127 4 gainApp 0x00000001090dc2e6 __33-[APPLocalNotification schedule:]_block_invoke + 374 5 libdispatch.dylib 0x000000010be6f186 _dispatch_call_block_and_release + 12 6 libdispatch.dylib 0x000000010be8e614 _dispatch_client_callout + 8 7 libdispatch.dylib 0x000000010be78552 _dispatch_root_queue_drain + 1768 8 libdispatch.dylib 0x000000010be79b17 _dispatch_worker_thread3 + 111 9 libsystem_pthread.dylib 0x000000010c1fb637 _pthread_wqthread + 729 10 libsystem_pthread.dylib 0x000000010c1f940d start_wqthread + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException
Posts: 1
Participants: 1