2018-10-22         Gladys

In firebase,I've setup a custom domain and it is working.But while FB or Google Authentication in application,the custom domain doesn't working

I've connected to a custom domain in firebase project. And my web application is hosted and wrking in that custom domain. But in my web app I'm using Firebase sign-in method for Facebook and Google. So when I click login Google box comes up. In that my custom domain is not shown. instead the firebaseapp with my projectid.com is shown. how to resolve this. Did you replace authDomain in your initialization code to use the custom domain?You need to do that: https://firebase.google.com/docs/auth/web/google-signin#customizing-the-redirect-domain-for-google-sign-in [XXX]See...

 firebase                     3 answers                     80 view
 2018-10-22         Jodie

Firebase hosting not connecting to custom domain

I have a working blahblah.firebaseapp.com default domain working correctly. No problems there. My website was on another provider so I went through the process to connect it to firebase hosting. Everything went fine and the domain status in Firebase Hosting console shows connected for my blahblah.com and www.blahblah.com domains. My problem is that when I navigate to blahblah.com, I get a page that says I can't find anyone with quite the same issue on Stackoverflow or any other site. There was one that was fixed by opening in a different browser (cached site issue), but thi...

 firebase                     1 answers                     84 view
 2018-10-22         Cornell

Using firebase for persistent storage

I'm working on a IOT project, where we are evaluating to use firebase. We have a prototype implemented which works fine for real time data. Since the data is critical for client they want to be able to retrieve the data at later point of date. I couldn't find much about a persistent storage in the firebase website, any of you have idea on if we can use firebase alone or do we need to transfer it to you a cloud based store like google cloud store, if so what is the reliable time for which firebase will hold the data. Assuming you choose the right plan.ThanksKamal Firebase...

 firebase                     1 answers                     85 view
 2018-10-22         Don

Dynamic rewrite rules with glob patterns in Firebase

I have a URL structure to a "project detail" page that looks like this: john/project/eRdKn6 (where "john" is the username and "eRdKn6" is the project id). I want this to be rewritten to the file project.html, where I parse the document.location and load the appropriate data. So the username and the project id should be dynamic.The rule in firebase.json that I have looks like this:{ "source": "*/project/*", "destination": "/project.html"}However, Firebase 404's when I try to load http://example.com/john/project/eRdKn6.I've tried to make only the last part dynamic, as a tes...

 firebase                     1 answers                     87 view
 2018-10-22         Carter

Unexpected trailing slash behaviour with Firebase hosting

I'm seeing unexpected behaviour (at least as per me) with trailing slashes on Firebase Hosting. I expect Firebase to serve URLs with a trailing slash (except for actual files present in the hosting directory). For this I set trailingSlash to true in firebase.json.This resulted in:example.com redirect to example.com/index.html/example.com/js/script.js redirect to example.com/js/script.js/example.com/images/image.png redirect to example.com/images/image.png/The expected behaviour would be:example.com redirect to ex...

 firebase                     2 answers                     88 view
 2018-10-22         Jennifer

Firebase init is not working with ubuntu 14.04

Firebase init is not working on ubuntu 14.04.This is the error i get everytime i try to execute this command.Thank you for helping me. /usr/bin/env: node: no such file or directory i finally found how to deal with it.first of all it is a node problem, so i should remove it then just create a symlink of nodejs to node. sudo apt-get remove --purge node sudo rm /usr/bin/node sudo ln -s /usr/bin/nodejs /usr/bin/node firebase initand it works. [XXX]

 firebase                     1 answers                     90 view
 2018-10-22         Truman

How to delete site via CLI

Is there a way to delete an app via Firebase CLI?Our CI creates a temporary Firebase app for a feature branch (based on the CI build number), and then runs tests on it. At the end it needs to delete the app. I'm not entirely sure how this is done. firebase disable:hosting just disables hosting and does not delete the app. This is similar to how we would have used Heroku review apps or Heroku forked apps. A similar CI workflow can also be achieved on Google App engine via versions.Any pointers would be much appreciated. There is currently no public API to delete a Firebas...

 firebase                     3 answers                     90 view
 2018-10-22         Faithe

Can I add additional file to my Firebase hosted static website, or must I deploy the entire site every time?

We plan to host a fairly large set of static files with Firebase Hosting. Is it possible to deploy only new files to Firebase Hosting, without having the entire site available?We essentially want to do an "update" deploy, not a "full" deploy. We want to add files.The context: on every Travis build, we generate new docs, and want to add those docs to our site. We don't have the entire site available at that point, only the newly generated files.Thanks! At the moment running firebase deploy will redeploy the entire site. There is no way to deploy only a specific part of th...

 firebase                     1 answers                     92 view
 2018-10-22         Bert

Firebase Hosting deploying two workspaces

I have two workspaces:mainblogUsing the Quickstart Guide, I have managed to succesfully deploy the main workspace to mycustomdomain.firebaseapp.com.My firebase.json looks as follows:{ "firebase": "mycustomdomain", "public": "/", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ]}Note that I use the rewrite to handle clean urls as I am hosting an Angular 1.x website.Now, I want to upload the content of the blog workspace to the domain mycustomdomain.firebaseapp.com/blog. How can ...

 firebase                     1 answers                     92 view
 2018-10-22         Bard

Error with Firebase on Electron app: Failed to load gRPC

I'm building an Electron app, and in the renderer.js file, I'm using Firebase Admin to get Firestore data. However, whenever I run it, it returns this error in the logs..Error: Failed to load gRPC binary module because it was not installed for the current systemExpected directory: electron-v2.0-darwin-x64-unknownFound: [node-v48-darwin-x64-unknown]This problem can often be fixed by running "npm rebuild" on the current systemI tried to run "npm rebuild", but it still didn't fix it.I also tried updating Firebase Admin and gRPC.Here is the code from the renderer.js file...// T...

 firebase                     1 answers                     27 view
 2018-10-22         Elva

Does Geofire support offline persistence?

One of the great things about Firebase is the ready-to-go offline persistence. Using the iOS and Android SDKs, when you attach an observer to a reference, the values that are returned get cached (if persistenceEnabled is set to YES), and are available if your app is offline, and are used as a point of comparison to fire change events when a new observer is attached later. That's great. But my question is whether it's possible to get Geofire caching in the same or a similar way, or does the app need to be online to get anything back from Geofire queries? And when a Geofire ...

 firebase                     1 answers                     96 view
 2018-10-22         Frederic

Google Cloud Firestore documents limit

I've been working with Google Cloud Firestore. I'm about to import 13000+ records from a CSV to the firestore back-end. I'll be using this collection for look up and auto-completion purposes. I'm curious and concerned to know if this is a good idea. Also, I'm looking for some suggestions on what techniques should I be using to make retrieval of this this data as efficient as possible. I'm working with Angular 5 and using AngularFire2 to connect with Firestore.The document itself is really small such as:{ address: { state: "NSW" street: "19 XYZ Road" suburb: "Darli...

 firebase                     1 answers                     54 view
 2018-10-22         Wendell

Firebase Analytics null user ids

I am using Firebase Analytics + BigQuery to track my app. However I noticed that roughly 90% of all events come with null user_dim.user_id parameter. From the logs I found that when calling the FirebaseAnalytics.SetUserId it usually seems to create following log message: "Value is too long; discarded. Value kind, name, value length: user property, _id, 42". So the user ids are being dropped because they are too long. But like the error message implies, the length of the parameter is 42 characters while according to Firebase documentation the maximum length for parameter val...

 firebase                     2 answers                     100 view
 2018-10-22         Beau

I want to sync user contacts to firebase firestore in one go

I am building chat application somewhat like whatsapp. I want to show registered app users list from user's device contact list while creating new group. Now in order to do that I have to compare each and every contact number with firebase firestore users. And any normal user can have more than 500 contacts in device. And moreover firestore has limitation to for querying the db so I can not compare more than one number at a time, the whole process takes almost 6-7 minutes as well as each read operation costs financially.How can I overcome with this situation, or what is the...

 firebase                     2 answers                     102 view
 2018-10-22         Blanche

Expo firebase auth provider is undefined

I'm using firebase facebook for my app. I just want user's public profile so that I can create user in my database. I do not want firebase full authentication just the profile detail but I am getting the following error.Here is some codeconst firebaseConfig = { apiKey: FIREBASE_KEY, authDomain: FIREBASE_AUTH_DOMAIN, databaseURL: FIREBASE_DATABASE_URL, projectId: FIREBASE_PROJECT_ID, storageBucket: FIREBASE_STORAGE_BUCKET}export const Firebase = firebase.initializeApp(firebaseConfig);async loginWithFacebook(navigate){ const { type, token} = await Expo.Facebook.logInWit...

 firebase                     1 answers                     23 view
 2018-10-22         Magee

Passing Firebase Cloud Messaging data to n screens above the current screen and across the app in Flutter

I've got an app in Flutter that's pulling a lot of data in the parent screen. The parent screen gets divided into a few child screens and those go to a few more child screens. Now, in order to make sure this isn't pulling data all the time from the API, I'm only pulling it once in the root screen - which is fine 90% of the time. All the subsequent updates are broadcasted throughout the app via firebase cloud messaging If I'm on screen 3, I need to update data in screen 1 which should also update data which will eventually be displayed on screen 2. I'm currently using this ...

 firebase                     2 answers                     85 view

Page 1 of 173  |  Show More Pages:  Top Prev Next Last