AWS Pinpoint push notification not showing while app is in background

0

Integrated AWS Pinpoint push notification in my react native app. In Android while app is in background notification is not delivered to notification drawer.

It's only issue when we send using AWS Pinpoint console, while sending from testfcm.com, it deliver correctly in device notification drawer.

Notification Payloads for Bothe cases:

Payload from testfcm.com: {"channelId": "fcm_fallback_notification_channel", "color": null, "data": {}, "finish": [Function finish], "foreground": true, "id": "-2060213543", "message": "Push notification body", "priority": "high", "smallIcon": "ic_notification", "sound": null, "tag": null, "title": "Push notification title", "userInteraction": false, "visibility": "private"}

Payload from AWS Pinpoint console: {"data": {"pinpoint.campaign.campaign_id": "_DIRECT", "pinpoint.notification.body": "This is new push notification body", "pinpoint.notification.silentPush": "0", "pinpoint.notification.title": "This is new push notification", "pinpoint.openApp": "true"}, "finish": [Function finish], "foreground": true, "id": "-134303354", "userInteraction": false}

Dinesh
preguntada hace 4 meses68 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas