skip to Main Content

Firebase hosting rest API Patch headers

Based on the firebase hosting documentation, I'm trying to update the header configuration (without having to redeploy everything, which is important in my case). https://firebase.google.com/docs/reference/hosting/rest/v1beta1/sites.versions/patch However, I can't do it, I always get an error. Here's the URL https://firebasehosting.googleapis.com/v1beta1/sites/SITE_NAME/versions/VERSION_ID?updateMask=config Here's…

VIEW QUESTION

After adding firebase to my flutter app, ui is not showing

import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:flutter_firebase_test/firebase_options.dart'; void main() async { await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform,); runApp(const MyApp()); } when i remove two line of code it work fine. await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform,); Ui should be loaded as it is before.

VIEW QUESTION

Javascript – How to implement subscribe synchronously like async await. angular, firebase

the problem is that the console represent 'undefined'. this.firestore.collection('list').doc('1').get().subscribe((doc: any) => { this.myAns = doc.data().answer ? doc.data().answer : "no answer"; }); console.log('this.myAns', this.myAns); but, I want to get right answer in console. this.firestore.collection('list').doc('1').get().subscribe(async (doc: any) => { this.myAns = await…

VIEW QUESTION
Back To Top
Search