react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Android: Schedule notifications is not precise

Open filipemonteiroth opened this issue 9 years ago • 3 comments

Hey,

I don't know if you guys have this problem, But in my case, when I schedule a notification, sometimes it works, sometimes it doesn't. I mean, sometimes I have the notification 10 minutes later than it was supposed to be, sometimes it doesn't event fires. What should I do to fix this?

filipemonteiroth avatar May 30 '17 12:05 filipemonteiroth

I am using my own fork so I am not sure what all commits have gone on but your issue sounds like a problem with the AlarmManager set call. You need to make sure it is using setExact instead of a simple set in rnpushnotificationhelper class

Sent from my iPhone

On 30-May-2017, at 5:40 PM, Filipe Monteiro [email protected] wrote:

Hey,

I don't know if you guys have this problem, But in my case, when I schedule a notification, sometimes it works, sometimes it doesn't. I mean, sometimes I have the notification 10 minutes later than it was supposed to be, sometimes it doesn't event fires. What should I do to fix this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

varun-acintyo avatar May 30 '17 16:05 varun-acintyo

How do I make sure i'm using setExact?

filipemonteiroth avatar May 31 '17 11:05 filipemonteiroth

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 23 '20 00:04 github-actions[bot]