zetavg / react-native-system-notification

Android system notifications for React Native. Supports push notifications with GCM integrated.
https://www.npmjs.com/package/react-native-system-notification
244 stars 102 forks source link

When repeatCount = 1 there is not notification created #67

Open jaimecorrea opened 7 years ago

jaimecorrea commented 7 years ago

I'm trying to set a Schedule Notification in the future for only one time, I tried with delay but I got an int 32 error as "delay" number was too long (it was more than a month delay), so I tried with sentAt and repeateCount = 1 and it doesn't work...

JonesN3 commented 7 years ago

You need to use 'repeatEvery' and 'sendAt' for repeatCount to work. Or else the time of repeat is not known, which does not make much sense.

However if you want the notification to be delivered only once (and not repeat), you should not be setting the repeatCount at all.