У меня это есть при запуске приложения
Код: Выделить всё
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
Auth.auth().useEmulator(withHost:"192.168.0.10", port:9099)
let settings = Firestore.firestore().settings
settings.host = "192.168.0.10:9098"
settings.cacheSettings = MemoryCacheSettings()
settings.isSSLEnabled = false // required when pointing to emulator
Firestore.firestore().settings = settings
return true
}
Код: Выделить всё
{
"firestore": {
"database": "(default)",
"location": "nam5",
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"emulators": {
"auth": {
"port": 9099,
"host": "0.0.0.0"
},
"firestore": {
"port": 9098,
"host": "0.0.0.0"
},
"ui": {
"enabled": true
},
"singleProjectMode": true
}
}
Код: Выделить всё
export FIREBASE_AUTH_EMULATOR_HOST="192.168.0.10:9099"
Что еще мне следует проверить?>
Подробнее здесь: https://stackoverflow.com/questions/798 ... h-emulator
Мобильная версия