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

Not working with Expo dev client

Open FlawaCLV opened this issue 3 years ago • 11 comments

Bug report

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

  • Reproduced on:
  • [ ] Android
  • [x] iOS

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

FlawaCLV avatar Dec 16 '21 20:12 FlawaCLV

hey did you have any luck?

DR7777 avatar Jan 20 '22 18:01 DR7777

Nope, no luck!

FlawaCLV avatar Jan 21 '22 09:01 FlawaCLV

Still no luck ?

mouhamedaly avatar Sep 22 '22 10:09 mouhamedaly

Not working still... Any luck?

rahuld600 avatar Dec 22 '22 17:12 rahuld600

@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.

FlawaCLV avatar Dec 23 '22 05:12 FlawaCLV

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

hssdiv avatar May 03 '23 18:05 hssdiv

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.

JorritKeijzer avatar Jun 01 '23 15:06 JorritKeijzer

@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

hssdiv avatar Jun 02 '23 16:06 hssdiv

@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.

JorritKeijzer avatar Jun 06 '23 13:06 JorritKeijzer

@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",

hssdiv avatar Jun 06 '23 17:06 hssdiv