Android Question NB6 notification, Android 10

hanyelmehy

Active Member
Licensed User
Longtime User
NB6 notification not work with android 10 ,with no error return
B4X:
    Private icon,icon2 As Bitmap
        icon = LoadBitmap(File.DirAssets,"logo24.png")   '24
        icon2 = LoadBitmap(File.DirAssets,"log256.png")  '256
        Dim n As NB6
        n.Initialize("default", Application.LabelName, "HIGH")
        n.SmallIcon( icon)
        icon2 = LoadBitmap(File.DirAssets,"log256.png")
        n.LargeIcon(icon2)
        
        n.BigPictureStyle(icon2.Resize(256dip, 256dip, True),icon2,Message.GetData.Get("title"),Message.GetData.Get("content"))
        n.Build(Message.GetData.Get("title"),Message.GetData.Get("content"), "tag", Me).Notify(9)

normal notification work
B4X:
Dim n As Notification
        n.Initialize
        n.Icon = "icon"
        n.Sound=True
        n.Vibrate=True
        n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("content"), Main)
        n.Notify(1)
 

Similar Threads

Top