iOS Question show Notification

Alessandro71

Well-Known Member
Licensed User
Longtime User
I'm trying to replicate the behavior of the Android Notification object on iOS.
In Android, the notification is displayed as soon as Notify is called, while on iOS the Notification is scheduled and shown only if the app is not on foreground.
If the app is on screen, no notification is shown.

I'm using this code
B4X:
    Dim n As Notification
    n.Initialize(DateTime.Now + 1000)
    n.IconBadgeNumber = 1
    n.AlertBody = text
    n.PlaySound = True
    n.Register

Is it possible to show the notification in both cases (app opened or closed)?
 
Top