NotificationNotes
NotificationNotes copied to clipboard
Does not restore notifications after phone reboot and even after starting app
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)
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:
- add some notes
- go to app manager and force application stop
- start it again
- notification bar still empty however application shows switched on notes
I have the same "problem". But not after reboot! I still have a note created and enabled ...
- go to app manager and force application stop
- start app again
- notification bar still empty however application shows switched on notes
I have added in NotesListAdapter.java on Line 100 setNotification(n);
Original @Override public void onBindViewHolder(ViewHolder holder, int position) { NotificationNote n = this.notes.get(position); holder.titleView.setText(n.title); holder.textView.setText(n.text); holder.switchView.setChecked(n.isVisible); setNotification(n); }
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 NNotes version: 1.5
Missing notifications after reboot. This kind of behavior seems invariable, rather inconsistent to reproduce with ease. But it still happens (from time to time).