Open mschristo opened 5 years ago
I'm having the same issue, if you find a solution or workaround could you please share?
I also have similar issue, just want a repeating notification 'every day' (at whatever time) - works on IOS but not on Android
@mschristo @coleweusthem I'm trying to reproduce this but I can't manage to reproduce it with the given example in this issue.
I used the exact same code as mentioned, only changed the day to the current date and see the following in the adb logs:
Notification gets triggered only once (which is correct) and the logs show that the next trigger will be in 2020, which is also correct.
Uninstall your app completely and try a fresh install. This will wipe any notification channels created earlier (from the original plugin). Since this fork supports mulitple channels you can create your own channels, so try to define a channel in your notification too while your at it.
@robertfriston Could you provide your JS code so I can test it as well? Perhaps I can reproduce the error with your code.
Hello @Steffaan,
thank you for your answer but i still having troubles making this works. Can you please share your project that this functions works (i assume it's an example code project). Also i cannot see the "next trigger..." log in my logcat
@mschristo
Sure, it's an empty cordova project where I added the plugin and your code snippet
(don't forget to change the time of the notification)
In your cordova project it's running as expected. But in my ionic project it did not. Here is my project in case you want to take a look:
When the notification triggers, it runs multiple times until the app crash. Here is a screenshot of this :
In case this helps I have never been able to get "Every" working, not in this fork or the original branch. I manually create my schedule (ie each scheduled task) and then refresh that schedule as time goes by. Still even in Android 8 after the first 1 or 2 notifications (across 1 or 2 days) it stops. I am trying it now in this fork to see if works.
Here's the bug report for the same issue from the original source: https://github.com/Steffaan/cordova-plugin-local-notifications
Before people start going on about setting count - I'll say it again adding count does not work (it doesn't get used when every is present) when you have repeats so stop putting it forward as a solution - IT DOES NOT WORK FOR THAT USE CASE.
Repeated notifications are not working as expected
Your Environment
cordova -v
): 8.0.0cordova platform ls
): 7.1.2Expected Behavior
Schedule a notification to trigger every time the date time match
Actual Behavior
The notification is triggered in the right time but it shows up multiple times at the same minutes and the app crashes
Steps to Reproduce
I set this:
Context
What were you trying to do?
Debug logs