Category : firebase

Please I’m trying to fetch data from firebase in PHP, and it’s giving me this error Uncaught RuntimeException: Credentials fetcher does not implement GoogleAuthUpdateMetadataInterface this is my code: require_once ‘vendor/autoload.php’; use GoogleCloudFirestoreFirestoreClient; $db = new FirestoreClient([ ‘projectId’ => ‘firebase-db-name’ ]); $docRef = $db->collection(‘collection’)->document(‘document’); $snapshot = $docRef->snapshot(); if ($snapshot->exists()) { printf(‘Document data:’ . PHP_EOL); print_r($snapshot->data()); } ..

Read more

I’m trying to verify the idToken provided from firebase javascript sdk with the Tuupola Jwt middleware for slim 4 but I always get a 401 error. This is the client code I’m using to get the token: const provider = new firebase.auth.GoogleAuthProvider(); provider.addScope("profile"); provider.addScope("email"); firebase.auth().signInWithPopup(provider).then( (result) => { console.log(result); }); The auth flow will work ..

Read more

i am new in firebase web if it possible to upload, and delete file using php. i have upload file using PHP but but i can’t find how to delete files from storage? My Code upload public function add_data() { $this->form_validation->set_rules(’email’, ‘Email’, ‘callback_cek_email’); //cek validasi if ($this->form_validation->run() == false) { # code… $this->form_tambah(); } else ..

Read more

I am trying to generate push notification to react-native android app. I refered https://www.2hatslogic.com/blog/setup-firebase-push-notifications-react-native-applications/ I am using the below code to generate push notification through php. and getting the below mentioned error. I can not find lagacy server key in cloud messaging tab, so I have put server key instead of lagacy server key in ..

Read more