I’ve saved some of my mobile registration_codes that are connected with my development environment of Firebase. Once I send a manual notification by the api I receive empty feedback from Firebase himself. After debugging I found that the notification has not been send. What’s wrong with my call, because the call I make is the same in the examples and
Tag: firebase
How to delete element of an array on Firestore using Laravel
I’m trying to update an element inside of an array on Cloud Firestore. I know that Firestore still don’t have the ability to update a single item of an element of the array. Instead, we can delete the entire element and then add the entire updated element again. I have managed to add entire element but I don’t know how
Composer Requirements could not be resolved to an installable set of packages. -kreait/laravel-firebase
Composer has been installed with laravel. However, each command is resulting into failing with the error message below. Answer You have a missing extension fileinfo if you running on windows all you need is to find php.ini and uncomment this line if you run on Linux-based you will need to install it like this
How can i upload files on Firebase storage inside folder with key generated names using JavaScript
Here is an image of my Firebase storage which is used by Android and IOS i want save the same from the web also I am trying this it is storing data but not in the folder Answer You can use Realtime database’s push keys and get random IDs and use them as your file name in Firebase storage:
React + Firebase + custom PHP API?
I’ve created a custom PHP API that at the moment is only hosted on my local machine as there is no authentication required to access it. My front end is built in react with firebase as the user authentication system. My question is, once a user has successfully logged in, how do I then enable my application to access my
“error”:”InvalidRegistration” while sending notification from PHP
Trying the mentioned code with registeration_ids and to parameter and both are not working. Help me to solve the same. Every time it is giving this error of multi cast id and InvalidRegistration. Getting this error: {“multicast_id”:8367359766XXXXXXXXX,”success”:0,”failure”:1,”canonical_ids”:0,”results”:[{“error”:”InvalidRegistration”}]} Answer Invalid Registrations usually have one of the following reasons: The registration token/device token is invalid The client app has actively unregistered with
php/codeigniter firestore update giving error InvalidArgumentException Input missing required one or more required keys
I am trying to connect admin panel on php-codeigniter with firestore/firebase . Insertion,Fetch and Set functions are working fine but when I try to update ( update a single key ) it gives InvalidArgumentException . I am following the official documentation here . I am new to firestore. Suggestions are appreciated. Here’s my code Error Output Answer According to my
App crashes when receiving notification from firebase PHP API
I want to send a notification to a user via firebase PHP API. I followed a tutorial but the app crashes when the API runs and if the app it’s not open nothing will happen. this is the code: <?php …
firebase php sdk not supported multi filter data
I am stuck to multi filter data in firebase with php sdk Here I used two times orderByChild so it throws the error KreaitFirebaseExceptionDatabaseUnsupportedQuery: This query is already ordered. in C:wamp64wwwfirebase-diemvendorkreaitfirebase-phpsrcFirebaseDatabaseQuery.php on line <i>288</i></th> Could you any suggest me that firebase php sdk support multi filter ? If yes how can I solve above error ? Answer This is not
Message: Call to private method KreaitFirebaseServiceAccount::fromJsonFile() from context ‘Firebase’
Does this error have anything to do with the Firebase version? If not, how do I solve this issue? Answer The code you posted is from kreait/firebase-php and shows a private method from the ServiceAccount class that can not be called directly since release 5.0 of the SDK. Straight from the troubleshooting section in the documentation: You probably followed a