Running the following code produces a notification every 10s and works as expected until I manually dismiss a notification by swiping a notification up. Notifications are then no longer displayed for about one minute. The notifications are still being generated and the notification sounds can still be heard. After the one minute the notifications start appearing again. I have tried this on two different phones with exactly the same behaviour including the same one minute period. I am wondering if this is a standard Android function that I have never noticed before though I couldn't find it via Googling.
B4X:
Sub Process_Globals
Private notiTimer As Timer, notiCount As Int=0
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
notiTimer.Initialize("notiTimer", 10000)
notiTimer.Enabled=True
End Sub
Sub notiTimer_Tick
Log("noti " & "#" & notiCount)
HighPriority_Notification("Hello" , "#" & notiCount)
notiCount=notiCount+1
End Sub
Sub HighPriority_Notification(title As String, content As String)
Dim n As NB6
n.Initialize("default", Application.LabelName, "HIGH").smallIcon(LoadBitmapResize(File.DirAssets, "smiley.png", 24dip, 24dip, False))
n.Build(title, content, "tag", Me).Notify(1)
End Sub