caffeinalab / ti.goosh

GCM/FCM module for Titanium.
MIT License
52 stars 34 forks source link

[WARN] : W/ti.goosh.IntentService: Show Notification: FALSE #118

Open blantonl opened 5 years ago

blantonl commented 5 years ago

On pushing a notification to my app this is the only thing that is logged

[WARN] : W/ti.goosh.IntentService: Show Notification: FALSE

No push notification occurs after this and the push data logged as received is:

PUSH received: {"c.i": "null"}

Jei commented 5 years ago

Could you post the payload of the notification you are trying to send?

blantonl commented 5 years ago

I'm sending the following

{
"GCM": "{ \"data\": { \"title\": \"My Alert\",\"alert\": \"The Alert\",\"sound\": \"modat\", \"vibrate\": true, \"iconb\": \"bcfy\", \"force_show_in_foreground\": true} }"
}
Jei commented 5 years ago

That "GCM" top level doesn't seem right. Could you try this test with your API KEY and device ID and see if the notification is received correctly?

blantonl commented 5 years ago

That example works.

I was using Amazon SNS to send a legacy GCM push.. supposed to be backwards compatible with FCM but I guess ti.goosh uses a custom payload.

AlvinAshuSebu commented 5 years ago

Hi,

Do we have any update on this. I have added the notificationChannel and still receive no push in background and also when I receive push in foreground, the payload returns null.

PUSH received: {"c.i": "null"}