React Native Time Sensitive

233 views
Skip to first unread message

Jake Orel

unread,
Jul 19, 2022, 6:14:05 PM7/19/22
to Firebase Google Group
Howdy y'all, 
I am working on adding time sensitive notifications to my app written in react native. However, I am running into some bumps in the road. I am using the package "react-native-firebase/messaging" and "react-native-firebase/app". I am able to receive and process notifications just fine however, I am unable to receive "time-sensitive" notifications. I was wondering if anybody has had this issue with react native and had any ideas.
here is the versions of React native, and the firebase pacakges
"@react-native-firebase/app": "^12.2.0",
"@react-native-firebase/messaging": "^12.2.0",
"react-native": "0.68.2",

and an example message im sending to the https://fcm.googleapis.com/fcm/send

{
"to": "<fcm token>",
"notification": {
"title": "Direct Send Test",
"body": "this is a test for my sanity",
"sound": "default",
"badge": 1,
"mutable_content": false
},
"aps": {
"alert": "test message",
"badge": 1,
"sound": "default",
"interruption-level": "time-sensitive"
},
"data": {
"command": "testcase",
"popup": true,
"sound": true,
"uid": "ladF5joB"
}
}

thanks in advance!
Reply all
Reply to author
Forward
0 new messages