Error after add firebase plugin in my project

Issue I am add firebase plugin in my nativescript angular project and then run the project it show’s the error below: What went wrong: Execution failed for task ‘:app:processDebugManifest’. > Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91

Continue reading

Node.js: install only required modules of googleapis

Issue I am using NodeJs to send FCM notifications. Below is my code const errorCodes = require(‘source/error-codes’); const PropertiesReader = require(‘properties-reader’); const serviceAccount = require("service-account.json"); const fetch = require(‘node-fetch’); var { google } = require(‘googleapis’); var MESSAGING_SCOPE = ‘https://www.googleapis.com/auth/firebase.messaging’; var

Continue reading

Firebase hosting deployment failing

Issue Running firebase deploy will run for a few minutes before giving me a timeout error Error: ESOCKETTIMEDOUT I’ve successfully deployed multiple times earlier, without changing anything but the frontend of my project (written in React). I have a separate

Continue reading

Rewriting firebase chained methods to promise.all

Issue I’ve created the following function to delete user and it’s dedicated collection which works fine. import * as admin from ‘firebase-admin’; import * as functions from ‘firebase-functions’; admin.initializeApp(); const Auth = admin.auth(); const UsersCollection = admin.firestore().collection(`users`); exports.deleteUser = functions.https.onCall((data,

Continue reading

Why can't I access the body or properties of this POST request send to a HTTP Firebase Cloud Function?

Issue I’m sending a POST request to a HTTP Firebase Cloud Function endpoint which contains the following body: { "securityContext": "edbsne0f17660e9ab49ad9bc3ddd4656230e0a9304bd15916f595b793da9109e1f7aa61e76c4afa91319011a7259b24ed583302334e22c5544c4e00506cf2fed93b28434e4088b22dda02712adf63bb6a370f", "event": "onInstall", "orgId": "7001935574", "dc": "AU" } But when I try to access any of those properties it shows

Continue reading

Angular Fire Imports angular 13

Issue I try to import the AngularFireModule and the AngularFirestoreModule but it says Module ‘"@angular/fire/firestore"’ has no exported member ‘AngularFirestoreModule’. Module ‘"@angular/fire"’ has no exported member ‘AngularFireModule’. Here is what I’ve got in my app.module.ts: import { NgModule } from

Continue reading

Firebase Functions | Does imports gets called twice if used in different files?

Issue metrics.js const functions = require(‘firebase-functions’); const admin = require(‘firebase-admin’); admin.initializeApp(); exports.nightlyReport = functions.https.onRequest((request, response) => { // … }); index.js const functions = require(‘firebase-functions’); const admin = require(‘firebase-admin’); admin.initializeApp(); exports.metrics = require(‘./metrics’); exports.usageStats = functions.https.onRequest((request, response) => { //

Continue reading