I'm using sample code available on connecty-cube GitHub repo. When I call to user who is on android phone doesn't receive the notification for call when app is in background. And when app is open user can see the incoming call. Constructor of PushNotificationsService run and I can see this console [PushNotificationsService][constructor]
. But inside _registerBackgroundTasks()
function [JSNotifyWhenKilledTask] notificationBundle
console doesn't run. I do get UDID for channels APNS, APNS VOIP and UDID for channel FCM in connecty cube dashboard.
React-Native Headless task not working on android
565 views Asked by Copy Paste At
2
There are 2 answers
0
![Copy Paste](/img/user-default.png)
So that's how I figured out the problem.
- Make sure you have properly configured each step of every required library for connecty-cube.
- Follow the docs
- After that I checked sdk version of firebase on firebase console.
It statedclasspath 'com.google.gms:google-services:4.3.13'
in(<project>/build.gradle)
. But mine wasclasspath 'com.google.gms:google-services:4.3.10'
. And because of that notification was not appearing. Now it's works.
I assume you are referring https://github.com/ConnectyCube/connectycube-reactnative-samples/tree/master/RNVideoChat
I suggest the following:
google-services.json
properly located