Open Deep Link Url When Click On Fcm Notification
I'm using Google's Fcm to send notification to my Android client I want to open specific screen with Deep Link url eg. example://my.app/products Here is endpoint to send notificati
Solution 1:
This feature is not mentioned in Fcm documentation but i tried some sort of tests on my own and figured out the solution:
Instead of click_action we need to put link:
https://fcm.googleapis.com/fcm/send
Content-Type: application/json
Authorization: key={SERVER_KEY}
{
"to" : "{Firebase client token}",
"collapse_key" : "type_a",
"notification" : {
"body" : "Body of Your Notification",
"title": "Title of Your Notification""link": "example://my.app/products" <<-- Here is the solution
}
}
Post a Comment for "Open Deep Link Url When Click On Fcm Notification"