React-Native Headless task not working on android

544 views Asked by At

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.

2

There are 2 answers

0
Rubycon On
0
Copy Paste On

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 stated classpath 'com.google.gms:google-services:4.3.13' in (<project>/build.gradle). But mine was classpath 'com.google.gms:google-services:4.3.10'. And because of that notification was not appearing. Now it's works.