-
Notifications
You must be signed in to change notification settings - Fork 15
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
Does not restore notifications after phone reboot and even after starting app #21
Comments
I tested this with Android 6.0.1 phone and with Android 4.0.3 emulator, and restoring of the notes after reboot worked for me in both. Do you have the latest version (1.5) of the app installed? |
Yes, it is 1.5 version. I can also reproduce it without reboot:
|
I have the same "problem". But not after reboot!
|
I have added in NotesListAdapter.java on Line 100 setNotification(n); Original After FORCE STOP and starting the APP all the enabled (visible) Notes will show in the notification bar |
I can confirm that "setNotification(n);" fixes this issue. PS. It fixes for stopping, but does not for reboot. I will test it more. |
onBindViewHolder is related to displaying the notes list within the app, it's not correct place to call the notification triggering code (setNotification). When you do the force stop, Android warns you that the app "may misbehave". This is what's happening here, Notification Notes misbehaves as it's force stopped. I believe the original issue with the rebooting is a different one. |
OS/version: Android 6.0.1
|
Does not restore notifications after phone reboot and even after starting app. It is needed tap off/on to put them back to notification bar.
(Android 4.0.4)
The text was updated successfully, but these errors were encountered: