NotifyMe
NotifyMe copied to clipboard
Question: What does "dismiss" and "done" button exactly do?
First of all I request developer to add wakelock to the library.
And, after implementation, I noticed If I click on "done" the daily notification stops, but not in the case of clicking "dismiss".
Kindly tell me what does these buttons exactly do.
Thanks for the library !
The "done" button was implemented like a delete or completed action. So it removes the notification from the local database, while the "dismiss" action is just used to close that instance of the notification and leave the future reoccurring ones. I'll look into adding wakelock option for those that need it!
Thank you so much for information.
BTW, yesterday I added wakelock for one line code in NotificationPublisher.class, i.e.
if (wakeLock != null)
wakeLock.acquire(10000);
mNotificationManager.notify(Integer.parseInt(notificationId), notification);
if (wakeLock != null)
wakeLock.release();
The notification pops up, but at wrong time... I'd set time as 8.00am but it popped up at 9am.
I'm not sure what to do to fix this.
I haven't worked with wakelock before so I'll test it a bit this weekend but I looked at the documentation and wouldn't calling wakeLock.release(); cancel the wakelock? So you would have to call wakelock.release() after the notification was received?
Also was it exactly 1 hour or was it off a bit?
Exactly after 1 hour @9am.
Now I've added wakelock for whole Notification code, I'll test again for 2-3 days and see if I've did right implementation of Wakelock.
I played around with for a bit and I couldn't get it to miss the correct time. What timezone are you using?
I'm using GMT +05.30