Category : google-cloud-firestore

I am trying to install google/cloud-firestore using composer require google/cloud-firestore but I am getting this error > Problem 1 > – lcobucci/jwt 4.1.5 requires ext-sodium * -> it is missing from your system. Install or enable PHP’s sodium extension. > – kreait/firebase-php 5.24.0 requires kreait/firebase-tokens ^1.16.1 -> satisfiable by kreait/firebase-tokens[1.16.1]. > – kreait/firebase-tokens 1.16.1 requires ..

Read more

I am new in google firestore. I can’t retrieve sub collections document output using PHP. I have data like this Message[collection]=>details[document]=>collection1[collection]=>collection1_id[document]=>field[name] I need field[name] value but i couldn’t get I tried this code but couldn’t get,i only get collection1[collection], after that nothing get. <?php namespace GoogleCloudSamplesFirestore; require_once ‘vendor/autoload.php’; use GoogleCloudFirestoreFirestoreClient; class Firestore { protected $db; ..

Read more

I am trying to implement OnClick in my recyclerview,but i failed miserably with all the searches how to solve this problem. I want by clicking on my cardview to go to another activity/even better fragment with another expandable lists,but i can’t even do this for now. Any help is highly appreciated. my update filed import ..

Read more

I am getting this error when I am trying to create firestore using kreait composer. Unable to create a FirestoreClient: Class ‘GoogleCloudFirestoreFirestoreClient’ not found in C:Program FilesAmppswwwfirebase_demofirebasevendorkreaitfirebase-phpsrcFirebaseFactory.php:553 Stack trace: #0 C:Program FilesAmppswwwfirebase_demofirebaseauthenticate.php(13). When downloading composer of firestore(composer require google/cloud-firestore) it is throwing error. Because there is already a composer of kreait. This is my php ..

Read more

Using Cloud Firestore, how can I use multiple where statements in a single query? Am having BadRequestException throwing back (Only a single ‘NOT_EQUAL’, ‘NOT_IN’, ‘IS_NOT_NAN’, or ‘IS_NOT_NULL’ filter allowed per query.) $query = $this->db->collection(‘accounts’); $query = $this->filterStatus && $this->filterStatus != -1 ? $query->where(‘status’, ‘=’, $this->filterStatus) : $query->where(‘status’, ‘!=’, ‘0’); $query = $this->filterRisk && $this->filterRisk != ..

Read more

im have installed the php sdk of google fire store "google/cloud-firestore" when i try to pull data from the collection it throws this error Uncaught Error: Class ‘GoogleFirestoreV1beta1StructuredQueryCollectionSelector’ not found in vendor/google/gax/src/Serializer.php:276 my actual code is // custom logic, just pulling the config array this part is working fine $option = $ins->integration(‘firebase’)->get_options(); $firestore = new ..

Read more