angularfire

Firebase force to use map rather than array

你离开我真会死。 提交于 2021-02-10 23:32:09
问题 In firebase quide i read about array: https://www.firebase.com/docs/web/guide/understanding-data.html#section-arrays-in-firebase especially : However, to help developers that are storing arrays in a Firebase database, when data is read using val() or via the REST api, if the data looks like an array, Firebase clients will render it as an array. In particular, if all of the keys are integers, and more than half of the keys between 0 and the maximum key in the object have non-empty values, then

Firebase force to use map rather than array

蓝咒 提交于 2021-02-10 23:31:16
问题 In firebase quide i read about array: https://www.firebase.com/docs/web/guide/understanding-data.html#section-arrays-in-firebase especially : However, to help developers that are storing arrays in a Firebase database, when data is read using val() or via the REST api, if the data looks like an array, Firebase clients will render it as an array. In particular, if all of the keys are integers, and more than half of the keys between 0 and the maximum key in the object have non-empty values, then

How to configure AngularFireAuthModule and/or AngularFireAuth to point to auth emulator

我是研究僧i 提交于 2021-02-10 06:49:06
问题 I believe the auth emulator was released near the end of Oct. 2020. auth emulator feature reqeust I'm trying to configure my locally served angular app to use the auth emulator by having angular/fire/auth make calls to localhost:9099. Is that possible yet? Or is the angular/fire team currently working on this? My firebase config parameter in environment is: firebase: { host: 'localhost:5000', ssl: false, apiKey: '<redacted>', authDomain: 'localhost:9099', databaseURL: '', projectId: '

Data is not showing. Ng-reflect-ng-for-off:null?

﹥>﹥吖頭↗ 提交于 2021-02-08 10:08:46
问题 Hi i am trying to bind a data from firebase. And I'm not getting errors but data is not showing. In inspect element i'm getting <!--bindings={ "ng-reflect-ng-for-of": null }--> My app.component.html is <ul> <li *ngFor="let item of items | async"> {{item.title}} </li> </ul> and my app.component.ts is import { Component } from "@angular/core"; import { AngularFirestore } from "angularfire2/firestore"; import { Observable } from "rxjs/Observable"; import { AngularFire, FirebaseListObservable }

Firestore - adding object with an array

旧街凉风 提交于 2021-02-07 08:44:57
问题 killing myself with this thing in here all day, I'm having two classes Department and Articals : export class Department { articals?: Artical[]=[]; moms?: number; id?: string; constructor() { } } and: export class Artical { moms?: number; price: number; name?: string; constructor() { } } like You can see departments contains an Array of 'Articals' so I am building new Department with new articals(and their properties) and trying to add it to fireStore with: this.departmetsCollection.doc

Firestore - adding object with an array

久未见 提交于 2021-02-07 08:44:40
问题 killing myself with this thing in here all day, I'm having two classes Department and Articals : export class Department { articals?: Artical[]=[]; moms?: number; id?: string; constructor() { } } and: export class Artical { moms?: number; price: number; name?: string; constructor() { } } like You can see departments contains an Array of 'Articals' so I am building new Department with new articals(and their properties) and trying to add it to fireStore with: this.departmetsCollection.doc

FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)

时光毁灭记忆、已成空白 提交于 2021-02-05 08:45:17
问题 I'm developing a Ionic 5 app both for Android and iOS. I'm using angularfire https://github.com/angular/angularfire/tree/v5 and I'm having some issues. In particular, this library works good when using Firestore, but when I try to use Cloud Messaging to receive notifications on my Android device, it raises an error: FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser) . I followed the tutorial available on the

How do I change the number of login attempts in Firebase?

安稳与你 提交于 2021-02-04 21:05:47
问题 I am a mobile developer and I am using firebase for my app which have built with Cordova and Ionic framework. So .. I implemented Firebase Auth functionalities such login/signup, email verification, forgot your password, ... But I found this message today while logging in with app. "We have blocked all requests from this device due to unusual activity. Try again later." How do I change the number of login attempts in Firebase? 回答1: You can't change login attempts. A blocked user can retry

Google Firebase Angular Firestore switchMap - Firebase Error DocumentReference.set()

跟風遠走 提交于 2021-01-29 21:53:14
问题 I'm trying to setup an Angular Firebase app where the user data that I want to share with the App is stored in the Firestore Database. I'm getting the following error: ERROR Error: Uncaught (in promise): FirebaseError: [code=invalid-argument]: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field role) My data is setup as follows: My user service is setup like this: auth.service.ts import { Injectable } from "@angular/core"; import {

How to update() an array of maps-objects on Firestore in Angular or Angularfirestore?

落爺英雄遲暮 提交于 2021-01-28 13:01:02
问题 I know how to READ and WRITE a document in Firestore, But how does one update() a Value of and object in an array of Maps without removing/deleteing? Just changing one value if needed. I have a Form that includes a FormArray, that are able to edit as an when there is an update on the price list. product = { id: "product id", brand: "Brand Name", model: "This is the model of the brand" lists: [ { location: "Location 1", price: "0.00" }, { location: "Location 2", price: "0.00" } ] } Component