Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotificationReceived event not executing for repeatType: NotificationRepeat.Daily #496

Open
programmerboy opened this issue May 2, 2024 · 2 comments
Labels
Android Android only issue

Comments

@programmerboy
Copy link

NotificationReceived event doesn't seem to be triggering when repeatType: NotificationRepeat.Daily is set (highted in red). I am able to see the daily alarm in adb shell dumpsys alarm, set to run around 1am. It is just that it doesn't seem to be going in the private void Current_NotificationActionReceived(NotificationEventArgs e) to setup further alarms for the day. The method runs for same day request as highligted in green even if the App is closed.

image

image

@thudugala
Copy link
Owner

@programmerboy did the app restart before the notification?
and
is

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 

added

@thudugala thudugala added the Android Android only issue label Jun 5, 2024
@programmerboy
Copy link
Author

@thudugala NO, the App didn't restart and yes I have added that permission. Basically instead of setting bulk alarms for next few days, it is a recursive loop (for every day repeatType: NotificationRepeat.Daily) which will run around 1am and set the 4-5 alarms for that day. In my actual Android application, the logic I have is a extends BroadcastReceiver class, which on onReceive sets the alarm for the day, and also sets the alarm for next day and the cycle repeats.

Since above code is not running as intended. The current workaround I have is to set bulk alarms for X number of days, and then ask users to open App after X number of days to repeat the logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android only issue
Projects
None yet
Development

No branches or pull requests

2 participants