Android Question (SOLVED) Notification builder issue?

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
I have an App which needs to ask people to fix some configuration issue(GPS not active and others). I use a Notification, because this can happen while the program is in background. I have put two button one for FIX and one for Cancel.
Many beta testers reported that in some occasion the buttons where not shown. Yesterday I have seen myself on a Android 7(Samsung S7).
I have seen this issue on my devices too, 4, 5 and 6 and I noticed that this happens if there are many notifications in the list.
This is the simple code I use:
B4X:
Sub notifica
    notify.Initialize
    notify.ContentText=(loc.Localize("Localization needed: activate?"))
    notify.SmallIcon="icon"
    notify.AddAction2("save",loc.Localize("Yes"),"si",s1)
    notify.AddAction2("delete25",loc.Localize("No"),"no",s1)
    notify.OnlyAlertOnce=True
    notify.AutoCancel=True
    notify.Notify(1)
End Sub
I have a second notification code:
B4X:
notify.Initialize
    notify.ContentTitle=(loc.Localize("Allow client:"))
    notify.ContentText= nome & " - " & telefo(1) & telefo(0)
    notify.SmallIcon="icon"
    notify.AddAction2("save",loc.Localize("Yes"),"activateparam",s1)
    notify.AddAction2("delete25",loc.Localize("No"),"non",s1)
    notify.OnlyAlertOnce=True
    notify.AutoCancel=False
    notify.Notify(2)
 
Top