Push Notification Amazon SNS - Message cut

Asked

Viewed 112 times

4

Hello,

I’m using Amazon SNS to do push shots through C#.

On the Android device, the message is cut in a row, and when you click on it, the application is redirected directly to the application. But there are other pushs, on the same device, with more lines, which leads me to believe that is not a limitation of the message itself.

On your Apple device, the message isn’t restricted to that size.

Does anyone know if it is possible to set the number of lines, or any other suggestion so that the user can read the full notification?

Thks!

  • What you have already implemented code?

  • I’m testing through the Amazon dashboard. The following code generates duplicate pushes, but one of them is expandable. The link (google) placed in the push also does not work: { "collapse_key": "demo","default": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "GCM":"{\"notification\":{\"body\":\"Check out these awesome deals! I said:Check out these awesome deals!\",\"title\":\"test\",\"url\":\"www.google.com\"}}" }

  • However, if I send the message via date, there will only be one message. But I don’t know how to pass the link I need to send, besides the text being cut in just one line. "data" : {
 "Nick" : "Mario",
 "body" : "great match!great ma great match!great match!great match!great match!great match!great match!tch! g reat match!great match! ",
 "Room" : "PortugalVSDenmark"
 }

1 answer

1


The application settings were not prepared to receive pushes in the "notification" pattern, so the message was not being displayed correctly, as well as being duplicated. The treatment to display more than one line needed to be done on the application side.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.