Android Question [Solved] Problems with push notification

asales

Expert
Licensed User
Longtime User
I'm sending the notification message with the B4J tool, but I have this problems:

1 - If I use "n As Notification" I don't get the multiline to the text, but I can open the app with the click in the notification.
notifica1.jpg


2 - If I change to NB6 class (that show large text with the BigTextStyle method) I can see the multiline text, but I cannot open the app with the click in the notification.
notifica2.jpg


How can I fix it (show the whole text and click in notification to open the app)?

I'll be thankfull for any help.

don't show multiline / open app with click
B4X:
Dim n As Notification
n.Initialize
n.Icon = "icon"
n.AutoCancel = True
Dim cs1 As CSBuilder
cs1.Initialize.Color(Colors.blue).Append(Message.GetData.Get("title")).PopAll
n.SetInfo(cs1, Message.GetData.Get("body"), Main)
n.Notify(1)

show multiline / don't open app with click
B4X:
Dim n As NB6
Dim smiley As Bitmap
smiley = LoadBitmapResize(File.DirAssets, "smiley.png", 24dip, 24dip, False)
n.Initialize("default", Application.LabelName, "DEFAULT").AutoCancel(True).SmallIcon(smiley)
n.BigTextStyle(cs1, "summary text", Message.GetData.Get("body"))
n.Build("title", "collapsed content", "tag", Me).Notify(1)
 
Top