react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
923 stars 445 forks source link

Not working with Expo dev client #506

Open FlawaCLV opened 2 years ago

FlawaCLV commented 2 years ago

Bug report

Can't manage to make it work using @config-plugins/react-native-callkeep

Description

RNCallKeep.setup({...}) returns undefined and any other functions prompts the splashscreen and freeze.

Step to reproduce

  1. yarn add react-native-callkeep @config-plugins/react-native-callkeep
  2. Add '@config-plugins/react-native-callkeep' in the plugins array in app.config.js
  3. Run eas build --profile development --platform ios
  4. Install the binary
  5. Finally run expo start --dev-client
DR7777 commented 2 years ago

hey did you have any luck?

FlawaCLV commented 2 years ago

Nope, no luck!

mouhamedaly commented 2 years ago

Still no luck ?

rahuld600 commented 1 year ago

Not working still... Any luck?

FlawaCLV commented 1 year ago

@rahuld600 I've archived the project I was working on which required this plugin. But I think it'll be possible with the latest eas released by Expo.

hssdiv commented 1 year ago

I guess config-plugin was updated recently, as OP flow worked without a problem for me

JorritKeijzer commented 1 year ago

Currently solved: I am running a bare workflow with expo, and running it on my own physical device, using the same steps as OP.

Maybe it would be good that there is a some bit of documentation for this this.

@hssdiv in what setup are you running it? I'll post a PR the coming week with some clarification about using expo with this library.

hssdiv commented 1 year ago

@JorritKeijzer I'm using it with expo managed workflow(aka no ios\android folders) + dev-client (aka custom Expo Go) and I did same steps as in OP (add plugin, build dev-client, install it on real phone, use expo start --dev-client).

worked on both ios\android

I think the only problem I had was inability to use this whole "imageName" thing, but I didn't really need it

JorritKeijzer commented 1 year ago

@hssdiv I'm not getting it to work, could you provide some code of your whole setup. I'm wondering what is going wrong for me.

hssdiv commented 1 year ago

@JorritKeijzer

here are some main files, it's a bit messy, as it was test project

https://gist.github.com/hssdiv/8c78c28ebb5aa4ada5d77d8063859c2c

you are probably interested in function "testCall" inside "useVoip.tsx" hook

also (maybe it's needed) in my app.json I have "plugins": [ "@config-plugins/react-native-webrtc", "@config-plugins/react-native-callkeep" ],

and versions in package.json:

"dependencies": { "@config-plugins/react-native-callkeep": "^5.0.0", "expo": "~48.0.5",

abduraufsherkulov commented 4 weeks ago

It is not working on expo 51