I'm using firebase emulators:start
firebase command to emulate functions locally. This work fine on iOS simulator but if I use real android device which is in the same network, these functions are unreachable. I can access 5001
port like this: locahost:5001
but not like this: 192.168.x.x:5001
.
I have the following code in my react-native expo project:
export const functions = firebase.functions();
firebase.functions().useFunctionsEmulator('http://192.168.x.x:5001');
but again, this only works on a simulator if I change the last line to:
firebase.functions().useFunctionsEmulator('http://localhost:5001');
Is it possible to start the emulator with something like --host
option like in firebase serve
command? Is there any other solution?