I'm trying to access the firestore emulator (hosted locally) through my Expo app on both physical and emulated devices, which both don't work. When I make a call to the emulated firestore database, such as setting a document, it doesn't show up on the UI. However, if I run the exact same code for the real firestore it works normally.
My firebase.json config is:
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"emulators": {
"firestore": {
"port": 8080
},
}
}
For the Expo app on the android emulator I set up my config as:
firebase.firestore().settings({
host: "10.0.2.2:8080",
ssl: false,
})
And for the Expo app on my physical android device:
firebase.firestore().settings({
host: "localhost:8080",
//I've also tried "192.168.68.109:8080" my computer's IP
ssl: false,
})