React-native-firebase: Send iOS & Android rich notification using same FCM payload

Created on 7 May 2019  路  4Comments  路  Source: invertase/react-native-firebase

Hi Team,

How to send rich notification for iOS and Android using same pay load.

For example:
https://fcm.googleapis.com/fcm/send
POST

Payload:

{
    "to": "topics/myTopic",
    "content_available": true,
    "mutable_content": true,
    "priority": "high",
    "notification": {
        "title": "Happy Alert",
        "body": "We have some special offers available for you!",
        "attachment-url": "https://hello.scene7.com/is/image/officedepot/676092_p_1?$OD%2DMed$",
        "media_type": "image",
        "adUrl": "/coupon/XXXX",
        "intent": "tested",
        "sound": "default"
    },
    "data": {
        "title": "Happy Alert",
        "body": "We have some special offers available for you!",
        "attachment-url": "https://hello.scene7.com/is/image/officedepot/676092_p_1?$OD%2DMed$",
        "media_type": "image",
        "adUrl": "/coupon/XXXX",
        "intent": "tested",
        "sound": "default"
    }
}
Stale

Most helpful comment

Yes, Very much Required Option, Will be very helpful

All 4 comments

Yes I'm also facing the same issue.

Can't able to send Image notification for android with this payload.

Yes, Very much Required Option, Will be very helpful

Hello 馃憢, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

escobar5 picture escobar5  路  3Comments

romreed picture romreed  路  3Comments

csumrell picture csumrell  路  3Comments

joecaraccio picture joecaraccio  路  3Comments

noahtallen picture noahtallen  路  3Comments