question

cmontesino avatar image
cmontesino asked

(Corona SDK) Push notification message not showing on notification bar

Hello, I'm trying to implement Push notifications. In iOS seems to work without issues, I get the notification bar with the message. But on Android I get the notification on the notification bar but with no message at all.

Only when I open the app I can read from the notification Listener inside my app (using Corona) the message.

This is the table I get inside mi notification Listener, event.type == "remote":

01-16 03:45:26.345 24543 29003 I Corona  : ### type: remote
01-16 03:45:26.345 24543 29003 I Corona  : ### name: notification
01-16 03:45:26.345 24543 29003 I Corona  : ### androidGcmBundle
01-16 03:45:26.345 24543 29003 I Corona  : ### {
01-16 03:45:26.345 24543 29003 I Corona  : ###    collapse_key: do_not_collapse
01-16 03:45:26.345 24543 29003 I Corona  : ###    default: message!
01-16 03:45:26.345 24543 29003 I Corona  : ###    from: 905088347593
01-16 03:45:26.345 24543 29003 I Corona  : ###    google.message_id: 0:1484549096801809%9a109ddcf9fd7ecd
01-16 03:45:26.346 24543 29003 I Corona  : ###    google.sent_time: 1484549096798
01-16 03:45:26.346 24543 29003 I Corona  : ### }
01-16 03:45:26.346 24543 29003 I Corona  : ### custom
01-16 03:45:26.346 24543 29003 I Corona  : ### {
01-16 03:45:26.346 24543 29003 I Corona  : ### }
01-16 03:45:26.346 24543 29003 I Corona  : ### alert: 
01-16 03:45:26.346 24543 29003 I Corona  : ### applicationState: inactive

What could be the problem?

Push Notifications
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
marcowilliamspf avatar image
marcowilliamspf answered

Hello,

The issue you are having is not with the PlayFab Corona SDK , this question should be posted on the Corona forums.

Meanwhile, I'll run this buy our SDK team to see if anyone has any idea how the push notifications work on Corona.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cmontesino avatar image cmontesino commented ·

Thanks for your answer. I tried the OneSignal plugin to see if it would give me a similar issue but it worked showing the message and title. I've decided to use the OneSignal Server REST API and do a web request from CloudScript.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.