Closed rickhuby closed 1 month ago
Is the alarm limit something that the plugin should handle (assuming this is the issue)? I don't believe we are actually scheduling 500+ but perhaps we somehow have 500+ requests for changes happening too closely together?
Hi, thanks for opening this issue! We have similar Issues with 60-100 non repeating notifications. We have Problems on the S7 Edge too and Problems with the S8 and Android 8. On the S7 Edge Device, sometimes Notifications are shown, and sometimes not. On the S8 it seems to work the first 1-2 weeks, and after that no notification is shown anymore. Do you have maybe updates on this? Maybe the SamsungAlarmManager is to slow in cancelling the notifications, and aborts the cancellation, when the JavaScript-Code reshedules the notification. Could you maybe set and 5-Second delay, before setting the notifications again? I did noticed some same problems with iOS some time before.
WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Your Environment
cordova -v
): 7.1.0cordova platform ls
): android 6.3.0Expected Behavior
We set up 50-60 notifications, about 4 per day. None of these are repeating notifications, they are all individually set.
We expect these to show on all devices.
Actual Behavior
On iOS and most Android devices these work as expected.
On the Samsung Galaxy S7 Edge these intermittently fail to show.
Steps to Reproduce
Reproduce this issue; include code to reproduce, if relevant
The below is the code (pulled from various places, but should help you to follow how it is used)
Context
These are medication reminders which should occur up to 4 times per day. We update the schedule regularly at which point we cancel all outstanding notifications and then set them back up again.
Debug logs
Include iOS / Android logs
Working Android Device
10-04 11:20:02.523 21157 21157 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancelall",{"event":"cancelall","foreground":true,"queued":false})) 10-04 11:20:02.558 21157 16124 D local-notification: Next trigger at: Sun Oct 07 11:20:02 GMT+01:00 2018 10-04 11:20:02.574 21157 21157 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":888888,"title":"Atom 5","text":"You need to sync your data","trigger":{"at":1538907602539,"type":"calendar"},"actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":888888})) 10-04 11:20:02.578 21157 21157 D SystemWebChromeClient: file:///android_asset/www/js/logs/log.js: Line 13 : INFO: 10-04 11:20:02.578 21157 21157 I chromium: [INFO:CONSOLE(13)] "INFO: ", source: file:///android_asset/www/js/logs/log.js (13) 10-04 11:20:02.593 21157 21157 D SystemWebChromeClient: file:///android_asset/www/js/logs/log.js: Line 13 : INFO: 10-04 11:20:02.593 21157 21157 I chromium: [INFO:CONSOLE(13)] "INFO: ", source: file:///android_asset/www/js/logs/log.js (13) 10-04 11:20:02.595 21560 21560 E adbd : failed to connect to socket 'localabstract:chrome_devtools_remote': Connection refused 10-04 11:20:02.595 21560 21560 E adbd : failed to connect to socket 'localabstract:chrome_devtools_remote': Connection refused 10-04 11:20:02.670 21157 16124 D local-notification: Next trigger at: Thu Oct 04 12:00:00 GMT+01:00 2018 10-04 11:20:02.676 21157 16124 D local-notification: Next trigger at: Thu Oct 04 16:00:00 GMT+01:00 2018 10-04 11:20:02.676 21157 21157 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810042,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1538650800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-04T11:00:00.000Z\",\"dateKey\":\"2018-10-04\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810042})) 10-04 11:20:02.681 21157 21157 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810043,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1538665200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-04T15:00:00.000Z\",\"dateKey\":\"2018-10-04\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810043})) 10-04 11:20:02.682 21157 16124 D local-notification: Next trigger at: Fri Oct 05 08:00:00 GMT+01:00 2018
......
10-04 12:00:00.059 21157 21157 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("trigger",{"id":201810042,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1538650800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-04T11:00:00.000Z\",\"dateKey\":\"2018-10-04\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"trigger","foreground":false,"queued":false,"notification":201810042}))
Broken Samsung Galaxy S7 Device
Below is taken from a 3 minute window of the device. The person using the phone has triggered a cancellation and resetting of the 50-60 notifications and then waited for the first notification due (8:00). There has been no "trigger" event fired accprding to the logs. When the notification is received on this device then the trigger event is seen.
I've tried to strip out all of the references that do not seem to be relevant to the plugin, but I have them in a file i you need the full details. It looks like we are getting an exception from the SamsungAlarmManger which is rejecting the number of alarms being raised. There are some references to this in the StackOverflow thread below:
https://stackoverflow.com/questions/29344971/java-lang-securityexception-too-many-alarms-500-registered-from-pid-10790-u#29610474
Is the issue perhaps related to multiple cancel and additions somehow happening conccurrently? We do not have 500 alarms being set, but the cancell all and setting of 100 or so could be happening more than once perhaps?
10-10 07:58:03.826 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancelall",{"event":"cancelall","foreground":true,"queued":false})) 10-10 07:58:04.023 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810223,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1540220400000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-22T15:00:00.000Z\",\"dateKey\":\"2018-10-22\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810223})) 10-10 07:58:04.026 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810203,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1540047600000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-20T15:00:00.000Z\",\"dateKey\":\"2018-10-20\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810203})) 10-10 07:58:04.031 11947 12090 D local-notification: Next trigger at: Mon Oct 22 20:00:00 GMT+01:00 2018 10-10 07:58:04.050 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810214,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1540148400000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-21T19:00:00.000Z\",\"dateKey\":\"2018-10-21\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810214})) 10-10 07:58:04.058 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810224,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1540234800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-22T19:00:00.000Z\",\"dateKey\":\"2018-10-22\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810224})) 10-10 07:58:04.063 11947 12090 D local-notification: Next trigger at: Tue Oct 23 08:00:00 GMT+01:00 2018 10-10 07:58:04.065 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810202,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1540033200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-20T11:00:00.000Z\",\"dateKey\":\"2018-10-20\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810202})) 10-10 07:58:04.076 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810213,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1540134000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-21T15:00:00.000Z\",\"dateKey\":\"2018-10-21\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810213})) 10-10 07:58:04.091 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810231,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1540278000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-23T07:00:00.000Z\",\"dateKey\":\"2018-10-23\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810231})) 10-10 07:58:04.095 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810201,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1540018800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-20T07:00:00.000Z\",\"dateKey\":\"2018-10-20\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810201})) 10-10 07:58:04.099 11947 12090 D local-notification: Next trigger at: Tue Oct 23 12:00:00 GMT+01:00 2018 10-10 07:58:04.101 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810212,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1540119600000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-21T11:00:00.000Z\",\"dateKey\":\"2018-10-21\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810212})) 10-10 07:58:04.106 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810211,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1540105200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-21T07:00:00.000Z\",\"dateKey\":\"2018-10-21\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810211})) 10-10 07:58:04.111 12231 12231 I peCommitFirebaseService: onStartJob, tag=PhenotypeCommitFirebase 10-10 07:58:04.118 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810232,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1540292400000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-23T11:00:00.000Z\",\"dateKey\":\"2018-10-23\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810232})) 10-10 07:58:04.119 11947 12090 D local-notification: Next trigger at: Tue Oct 23 16:00:00 GMT+01:00 2018 10-10 07:58:04.121 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810222,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1540206000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-22T11:00:00.000Z\",\"dateKey\":\"2018-10-22\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810222})) 10-10 07:58:04.136 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810233,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1540306800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-23T15:00:00.000Z\",\"dateKey\":\"2018-10-23\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810233})) 10-10 07:58:04.136 11947 12090 D local-notification: Next trigger at: Tue Oct 23 20:00:00 GMT+01:00 2018 10-10 07:58:04.138 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810221,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1540191600000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-22T07:00:00.000Z\",\"dateKey\":\"2018-10-22\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810221})) 10-10 07:58:04.192 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810174,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1539802800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-17T19:00:00.000Z\",\"dateKey\":\"2018-10-17\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810174})) 10-10 07:58:04.218 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810184,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1539889200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-18T19:00:00.000Z\",\"dateKey\":\"2018-10-18\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810184})) 10-10 07:58:04.234 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810183,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1539874800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-18T15:00:00.000Z\",\"dateKey\":\"2018-10-18\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810183})) 10-10 07:58:04.248 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810194,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1539975600000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-19T19:00:00.000Z\",\"dateKey\":\"2018-10-19\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810194})) 10-10 07:58:04.270 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810182,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1539860400000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-18T11:00:00.000Z\",\"dateKey\":\"2018-10-18\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810182})) 10-10 07:58:04.290 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810193,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1539961200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-19T15:00:00.000Z\",\"dateKey\":\"2018-10-19\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810193})) 10-10 07:58:04.305 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810181,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1539846000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-18T07:00:00.000Z\",\"dateKey\":\"2018-10-18\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810181})) 10-10 07:58:04.331 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810192,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1539946800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-19T11:00:00.000Z\",\"dateKey\":\"2018-10-19\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810192})) 10-10 07:58:04.366 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("cancel",{"id":201810191,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1539932400000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-19T07:00:00.000Z\",\"dateKey\":\"2018-10-19\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"cancel","foreground":true,"queued":false,"notification":201810191})) 10-10 07:58:04.682 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810101,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1539154800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-10T07:00:00.000Z\",\"dateKey\":\"2018-10-10\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810101})) 10-10 07:58:04.746 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810102,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1539169200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-10T11:00:00.000Z\",\"dateKey\":\"2018-10-10\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810102})) 10-10 07:58:04.796 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810103,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1539183600000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-10T15:00:00.000Z\",\"dateKey\":\"2018-10-10\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810103})) 10-10 07:58:04.861 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810104,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1539198000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-10T19:00:00.000Z\",\"dateKey\":\"2018-10-10\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810104})) 10-10 07:58:04.906 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810111,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1539241200000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-11T07:00:00.000Z\",\"dateKey\":\"2018-10-11\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810111}))
10-10 07:58:05.185 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810113,"title":"Medication Reminder","text":"Afternoon medication is now due","trigger":{"at":1539270000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":3,\"due\":\"2018-10-11T15:00:00.000Z\",\"dateKey\":\"2018-10-11\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810113})) 10-10 07:58:05.189 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810114,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1539284400000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-11T19:00:00.000Z\",\"dateKey\":\"2018-10-11\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810114})) 10-10 07:58:05.210 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810121,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1539327600000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-12T07:00:00.000Z\",\"dateKey\":\"2018-10-12\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":true,"queued":false,"notification":201810121})) 10-10 07:58:05.255 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810122,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1539342000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-12T11:00:00.000Z\",\"dateKey\":\"2018-10-12\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":false,"queued":false,"notification":201810122})) 10-10 07:58:05.335 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810124,"title":"Medication Reminder","text":"Evening medication is now due","trigger":{"at":1539370800000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":4,\"due\":\"2018-10-12T19:00:00.000Z\",\"dateKey\":\"2018-10-12\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":false,"queued":false,"notification":201810124})) 10-10 07:58:05.385 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810131,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1539414000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-13T07:00:00.000Z\",\"dateKey\":\"2018-10-13\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":false,"queued":false,"notification":201810131}))
--------- beginning of system 10-10 07:58:07.369 3692 5318 V SamsungAlarmManager: #0: alarm(s) for PendingIntent{a3fd5ae: PendingIntentRecord{c775711 com.aparito.atom5.carbon broadcastIntent}}
LOTS OF THE ABOVE LINE WITH DIFFERENT IDS, PRESUMABLY REFERENCING THE NOTIFICATIONS REGISTERED ABOVE
10-10 07:58:07.388 3692 5318 V SamsungAlarmManager: #0: alarm(s) for PendingIntent{97b1433: PendingIntentRecord{b77c14b com.aparito.atom5.carbon broadcastIntent}} 10-10 07:58:07.388 12117 12176 D BluetoothAdapter: STATE_ON 10-10 07:58:07.391 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810222,"title":"Medication Reminder","text":"Midday medication is now due","trigger":{"at":1540206000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":2,\"due\":\"2018-10-22T11:00:00.000Z\",\"dateKey\":\"2018-10-22\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":false,"queued":false,"notification":201810222}))
TOO MANY ALARMS?
10-10 07:58:07.415 3692 17036 W SamsungAlarmManager: !@Too many alarms (500) registered from uid 10522
10-10 07:58:07.563 11947 11947 D CordovaWebViewImpl: >>> loadUrl(javascript:cordova.plugins.notification.local.fireEvent("add",{"id":201810231,"title":"Medication Reminder","text":"Morning medication is now due","trigger":{"at":1540278000000,"type":"calendar"},"data":"{\"type\":\"MEDICATION_NOTIFICATION\",\"slot\":1,\"due\":\"2018-10-23T07:00:00.000Z\",\"dateKey\":\"2018-10-23\"}","actions":[],"attachments":[],"autoClear":true,"clock":true,"defaults":0,"groupSummary":false,"launch":true,"led":true,"lockscreen":true,"number":0,"priority":0,"progressBar":{"enabled":false,"value":0,"maxValue":100,"indeterminate":false},"silent":false,"smallIcon":"res:\/\/icon","sound":true,"timeoutAfter":false,"vibrate":false,"wakeup":true,"meta":{"plugin":"cordova-plugin-local-notification","version":"0.9-beta.3"}},{"event":"add","foreground":false,"queued":false,"notification":201810231})) 10-10 07:58:07.570 3692 17036 D SamsungAlarmManager: Cancel Alarm calling from uid:10522 pid :11947 / op:PendingIntent{c094ebb: PendingIntentRecord{595afd8 com.aparito.atom5.carbon broadcastIntent}}
........
10-10 08:00:00 - No fireEvent("trigger")
No more references to the plugin for the next 90 seconds.