Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
' Dim n As Notification
' n.Initialize
' n.Icon = "icon"
' n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
' n.Notify(1)
'
' *******************************PUSH1 MESSAGE ********************************
' Dim n As NB6
' Dim smiley As Bitmap
' smiley = LoadBitmapResize(File.DirAssets, "iconsy2.png", 24dip, 24dip, False)
' n.Initialize("default", Application.LabelName, "DEFAULT").AutoCancel(True).SmallIcon(smiley)
' n.Build(Message.GetData.Get("title"), Message.GetData.Get("body"), "tag1", Main).Notify(4)
Dim n As NB6
Dim smiley As Bitmap
smiley = LoadBitmapResize(File.DirAssets, "ikona3.png", 24dip, 24dip, False)
n.Initialize("default", Application.LabelName, "DEFAULT").SmallIcon(smiley) ' normalnie "DEFAULT|
Dim b As Bitmap = LoadBitmap(File.DirAssets, "imageslp2.jpg")
n.BigPictureStyle(b.Resize(256dip, 256dip, True), _
b, Message.GetData.Get("title"), Message.GetData.Get("body"))
n.Color(0xFF00AEFF)
n.Build(Message.GetData.Get("title"), Message.GetData.Get("body"), "tag", Main).Notify(7)