react-native-webrtc-firebase icon indicating copy to clipboard operation
react-native-webrtc-firebase copied to clipboard

How to run on two device

Open astroana opened this issue 5 years ago • 5 comments

How do I run it on 2 adb devices to test?

How did you test it on 2 device?

astroana avatar Oct 27 '20 08:10 astroana

I used a physical device and an emulator. But if you can install it into two emulators, it should work.

DipanshKhandelwal avatar Oct 27 '20 11:10 DipanshKhandelwal

How did you run two metro bundler at the same time, mine keeps disconnecting if I run another one. How to do it?

astroana avatar Oct 27 '20 11:10 astroana

Oh. I remember using a release build for that.

Though try this command to run another bundler on a different port.

react-native run-android --port 8082 --deviceId emulator-1234

DipanshKhandelwal avatar Oct 27 '20 12:10 DipanshKhandelwal

ok thanks i will try that

astroana avatar Oct 27 '20 12:10 astroana

I manage to run both devices using wireless debugging but I get error when I start or join call:

Possible Unhandled Promise Rejection
Error: [firestore/permission-denied] The caller does not have permission to execute the specified operation.
NativeFirebaseError: [firestore/permission-denied] The caller does not have permission to execute the specified operation.

edited: it was my mistake, my firebase rules setting was not on testing mode. I change it to testing mode and it is now working. Thanks!

astroana avatar Oct 27 '20 13:10 astroana