google-cloud-firestore

Error Installing 'pod Firebase/Firestore' in my iOS app

喜欢而已 提交于 2021-01-29 06:25:08
问题 I am unable to install pod Firebase/Firestore. I am also unable to locate the error also, here is all the information: Version information: CocoaPods : 1.10.0 Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18] RubyGems : 2.5.2.3 Host : Mac OS X 10.14.6 (18G103) Xcode : 11.0 (11A420a) Git : git version 2.21.0 (Apple Git-122) Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib Repositories : trunk - CDN - https://cdn.cocoapods.org/ My PodFile

Accessing Firestore from Firebase Realtime Database Security Rules

感情迁移 提交于 2021-01-29 06:22:54
问题 I'm actively using both of Firebase Realtime Database and Firestore. There is a case in which I need to check a document on Firestore to allow user to write on Firebase Realtime Database. Basically, I need to access user's document in the users collection on Firestore to allow user to create a post under the posts node on Firebase Realtime Database. Is something like this possible, by any chance? "rules": { "posts": { ".write": "get(/databases/$(database)/documents/users/$(auth.uid)).data

Vue.js: Cannot retrieve data from cloud firestore

吃可爱长大的小学妹 提交于 2021-01-29 06:21:38
问题 I created the database on cloud firestore, and the collection name is products. Now I want to retrieve all the resources in my collection. I have already created 12 products in my database. But in my vue-devtool, I cannot see any array. How can I retrieve the data from cloud firestore? Here is my vue.js code. <template> <h3 class="d-inline-block">Products list</h3> <div class="product-test"> <div class="form-group"> <input type="text" placeholder="Product name" v-model="product.name" class=

Accessing data within an inner function in Java with FireBase/FireStore

佐手、 提交于 2021-01-29 06:12:19
问题 I am coding an android app using Google's FireStore backend. The code to grab all the documents in a firestore collection is as follows, from the official documentation: db.collection("cities") .get() .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() { @Override public void onComplete(@NonNull Task<QuerySnapshot> task) { if (task.isSuccessful()) { for (QueryDocumentSnapshot document : task.getResult()) { Log.d(TAG, document.getId() + " => " + document.getData()); } } else { Log.d

User login in Firebase

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 06:11:59
问题 I built with Firebase two options for registration, one can register as an employer and another option to register as an worker. I gave an ID to them, and each employer received the letter 'e' at the beginning of the ID and the worker received the letter 'w' at the beginning of the ID so that I could identify them. I also created the possibility of connecting with Firebase and I want if I connect as a worker I will switch to a certain screen and if I connect as an employer I will switch to

Get older snapshot for pagination when querying with limit(toLast:)

假装没事ソ 提交于 2021-01-29 06:01:37
问题 Im building a chat feature for my app using Firestore. I'm using limit(toLast:) because I'm fetching based on the timestamp, this method gives me the latest messages saved in my DB. But it is giving me trouble when trying to fetch the snapshot/documents prior to that for loading older messages. Heres my code: fileprivate func paginateFetchMessages() { var query: Query! if let nextStartingSnap = self.lastDocumentSnapshot { query = DBCall.fireRef.collection("friendMessages") .document

admin.auth().verifyIdToken(idToken) Error: Could not load the default credentials whith firebase-admin after to 8.0.0

一笑奈何 提交于 2021-01-29 06:01:35
问题 I've got a problem when i'm trying use middleware in firebase this is my middleware (FBauth) const db = admin.firestore(); const FBAuth = (_req,_res,next) => { let idToken; if(_req.headers.authorization && _req.headers.authorization.startsWith('Bearer ')){ idToken = _req.headers.authorization.split ('Bearer ')[1]; console.log('ID TOKEN ------------>', idToken); }else{ console.error('Nessun Token trovato') return _res.status(403).json({ error: 'non-autorizzato'}); } admin.auth().verifyIdToken

Build Failing with an exception when adding firebase_auth or cloud_firestore in the pubspec.yaml file (firebase_core is working):

限于喜欢 提交于 2021-01-29 05:55:54
问题 From the run terminal of android studio: FAILURE: Build failed with an exception. Where: Script 'C:\Flutter\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 362 What went wrong: A problem occurred configuring project ':cloud_firestore_web'. Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Try: Run with --stacktrace option to get the stack trace. Run with

React firebase multiple images select on submit storing only one image URL in array

自作多情 提交于 2021-01-29 05:52:38
问题 class App extends React.Component { constructor(props) { super(props); this.addData = this.addData.bind(this); this.state = { username: "", imgFile: [], imgUrl: [], }; } upload = (e) => { e.preventDefault(); this.storeImageAndgetUrl(this.addData); }; storeImageAndgetUrl = (addData) => { const storage = fire.storage(); const reference = storage.ref(); this.state.imgFile.forEach((file) => { reference .child(file.name) .put(file) .then( (snapShot) => { console.log(snapShot); const storage = fire

Build Failing with an exception when adding firebase_auth or cloud_firestore in the pubspec.yaml file (firebase_core is working):

冷暖自知 提交于 2021-01-29 05:51:05
问题 From the run terminal of android studio: FAILURE: Build failed with an exception. Where: Script 'C:\Flutter\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 362 What went wrong: A problem occurred configuring project ':cloud_firestore_web'. Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Try: Run with --stacktrace option to get the stack trace. Run with