Commit 8a3d1240 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update FirebaseClient.js

parent 2f3dcee9
import FirebaseConstants from "./FirebaseConstants";
import { Platform } from "react-native";
const API_URL = "https://fcm.googleapis.com/fcm/send";
......@@ -22,6 +23,21 @@ class FirebaseClient {
"priority": 10
}
if(Platform.OS === 'android'){
body = {
"to": token,
"data":{
"custom_notification": {
"title": "Simple FCM Client",
"body": "This is a notification with only NOTIFICATION.",
"sound": "default",
"click_action": "fcm.ACTION.HELLO"
}
},
"priority": 10
}
}
this._send(JSON.stringify(body), "notification");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment