You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we send notification messages, its by default get shown in device tray(as expected). We have message body length of nearly 92 characters. When we try to view the message in device tray only first ~40 characters are being shown. Seems like message is not getting wrap in multiple lines.
We have tested the same behavior on Android phones having 5.1 and 6.0 versions.
My question is how we can show these messages with full length using "notification" payload only.
also as an alternate solution, we can think of having "data" payload and handle it there with custom notification service (as described in sample code), but there also we are stuck with detecting the scenarios that whether app is in foreground or background or killed.
Overall goal is to achieve functionality as below; -
App is in Foreground: - we capture the notifications and display them in notification page(this is a page inside app).
App is in background: - display messages in system tray. and when touched by user, app will get open.
Please let me know if we have any suggestions to implement the above requirement
message sent is (via Java code from server):
JSONObject info = new JSONObject();
info.put("sound", "default");
info.put("title", "My Test Title"); // Notification title
info.put("body", "Survey launched: [July 2016] MONTHLY SURVEY OF MANUFACTURING BUSINESS CONDITIONS IN IRELAND"); // Notification body
JSONObject json = new JSONObject();
json.put("to",<Device token for testing>);
json.put("notification", info);
json.put("content_available", true);
The text was updated successfully, but these errors were encountered:
This should be fixed in SDK 9.4.0. Big Style notifications are used so there would be the option for the user to expand the notification if it is not expanded automatically.
When we send notification messages, its by default get shown in device tray(as expected). We have message body length of nearly 92 characters. When we try to view the message in device tray only first ~40 characters are being shown. Seems like message is not getting wrap in multiple lines.
We have tested the same behavior on Android phones having 5.1 and 6.0 versions.
My question is how we can show these messages with full length using "notification" payload only.
also as an alternate solution, we can think of having "data" payload and handle it there with custom notification service (as described in sample code), but there also we are stuck with detecting the scenarios that whether app is in foreground or background or killed.
Overall goal is to achieve functionality as below; -
Please let me know if we have any suggestions to implement the above requirement
message sent is (via Java code from server):
The text was updated successfully, but these errors were encountered: