react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

RNCallKeepBackgroundMessage documentation needed

Open mikkeldanielsen opened this issue 1 year ago • 2 comments

Help needed

  • [x] I've checked the example to reproduce the issue.

  • Reproduced on:

  • [x] Android

  • [ ] iOS

Description

The headless task RNCallKeepBackgroundMessage for android handles calls from the native dialer. Calls from the native dialer on iOS work like a charm. The app launches and the listener "didLoadWithEvents" has the call data.

On Android RNCallKeepBackgroundMessage is fired and I can start a call, but the headless task is destroyed before I can register if the call is active or failed. How do you cope with calls from the native dialer on Android? I can't find any documentation for RNCallKeepBackgroundMessage.

Versions

- Callkeep: 4.3.12
- React Native: 0.71
- iOS: 16
- Android: 11
- Phone model: OnePlus 6T

mikkeldanielsen avatar Aug 29 '23 09:08 mikkeldanielsen

YES, DEFINITELY!

even the tiny hint that's there is CRYPTIC AS FUCK: "BackgroundMessaging from react-native-firebase-(Optional)(Android-only)-Listen-for-FCM-messages-in-the-background)."

like, use a full sentence... what is optional, how...all the things. this is a MASSIVE hole where a concrete example is needed. I'm 5 days of research on this and totally stuck.

I mean, I appreciate the free code, just the frustration at this one hole is so huge :)

ericlyoung avatar Dec 12 '23 23:12 ericlyoung

Using same FCM in the IOS, how to backtoForeground the app?

domabyte avatar May 18 '24 13:05 domabyte