Open well-it-wasnt-me opened 1 year ago
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.
Please see the Contributing Guide for how to create a Code Reproduction.
Thanks! Ionitron 💙
granted you access to the app source code. will be public once finished
Please, can you provide a public sample app? it can be a reduced one. The whole team needs access to the sample apps, not just me.
ok, give me 5
Some updates:
Honestly..is all this a bug or my own stupidity ?
I haven't tested it on iOS but I can confirm the problem with WEB and Android. As soon as the every
parameter is defined then notification is scheduled 24 hours later. You can see it here:
if (every != null) {
Long everyInterval = schedule.getEveryInterval();
if (everyInterval != null) {
long startTime = new Date().getTime() + everyInterval;
alarmManager.setRepeating(AlarmManager.RTC, startTime, everyInterval, pendingIntent);
}
return;
}
So If you define day
as every
parameter, startTime
is now
+ 24 hours as a default. The question is how to schedule a repeating notification but not with 24 hours delay.
Bug Report
Plugin(s)
@capacitor/local-notifications
Capacitor Version
Platform(s)
iOS and Android
Current Behavior
In iOS doesn't popup the notifications when in background nor during the app running.
On Android the notification starts the next day at the setted time...
Expected Behavior
to lunch the notification also when in background
Code Reproduction
Other Technical Details
Additional Context
package.json