Эмуляторы функций Firebase с onRequest не работают локально с эмулятором android - PullRequest
0 голосов
/ 24 апреля 2020
  1. Запуск функций локально с конечной точкой functions .region(region) .https.onRequest(identify);
  2. Использование эмуляторов Firebase в android приложении:

    private fun useFirebaseEmulators() {
    // 10.0.2.2 is the special IP address to connect to the 'localhost' of
    // the host computer from an Android emulator.
    val settings = FirebaseFirestoreSettings.Builder()
        .setHost("10.0.2.2:8080")
        .setSslEnabled(false)
        .setPersistenceEnabled(false)
        .build()
    
    val firestore = FirebaseFirestore.getInstance()
    firestore.firestoreSettings = settings
    
    FirebaseFunctions.getInstance().useFunctionsEmulator("http://10.0.2.2:5001");
    

    }

  3. Запуск эмулятора android, вызов конечной точки с шага 1. в эмуляторах

  4. Функции Firebase не вызываются

...