LockScreenNotes
LockScreenNotes copied to clipboard
Not showing on Lock Screen on some devices
Hi, thanks for this great app.
Unfortunately, I'm one of those who faced the issue on not showing the notifications right out of the box (Meizu M6 Note, Android 7.1). Never on the lock screen, but almost always on the notification drawer screen. I saw some reviews at the Play Store with similar experience. I tried all released versions (release7.apk - release11.apk) with the same results. I tried to look at the sources, eventlog and play with different settings. Finally, when the Dismissable Notes setting was set on, the notifications appeared on the Lock Screen.
My guess is that some devices with custom logic behind notifications might not like the SetAutoCancel(true)/SetOngoing(true) at the same time (AutoCancel is true in the getNotesBuilder method and SetOngoing is true when the notifications are not dissmissible - default for newly installed app). I could not find a related discussion about these two calls at stackoverflow.com or anywhere else, but it's just a guess, but very few code fragments about other topics contains both as true. Even looking at the docs they look mutually exclusive ( docs about Notification.Builder )
public Notification.Builder setOngoing (boolean ongoing) Set whether this is an "ongoing" notification. Ongoing notifications cannot be dismissed by the user public Notification.Builder setAutoCancel (boolean autoCancel) Make this notification automatically dismissed when the user touches it.
I'm not sure that this should be fixed, but you may consider adding some notes to the description in the Store.
(Side note: I'm going to use your app extensively since there are virtually no other at the Store, the only direct "competitor" (studios.applab.stickynotifications) is too simple for daily use (but works right of the box :)
Thanks