Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
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("title", "collapsed content", "tag", Main).Notify(7)
Are you able to receive push notifications at all? Do you see the log messages?
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)
Logger połączony z: LGE LG-D855
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (firebasemessaging) Create ***
** Service (firebasemessaging) Start **
--------- beginning of system
** Activity (main) Pause, UserClosed = true **
** Receiver (firebasemessaging) OnReceive **
** Service (firebasemessaging) Start **
Message arrived
Message data: {body=asdasdsadadsada, title=ddsadsd}
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
Activity started from notification. Tag: tag
** Activity (main) Pause, UserClosed = true **