Closed domenico-renna closed 4 months ago
Version 5.x supports the new FCM API, so you don't need to upgrade the SDK right away π₯³
What about version 2.x?
What about version 2.x?
You can't be serious π€‘
What about version 2.x?
You can't be serious π€‘
Unfortunately yes. We use custom library to send notifications. When getting the email about the legacy Api termination, just find out the library using kreait/firebase-php v2. Can I know what the minimum version we need to upgrade so it use new firebase http api?
Version 2.x doesn't even include support for FCM π
Hello, Back in December, when Google began sending email about the discontinuation, the email sent to me contained :
Your recent usage of impacted APIs/features: Batch send API
Decommissioned service: Including multiple send requests in a single HTTP request to FCM known as Batch Send.
New alternative: Send messages via the HTTP v1 API, which has been optimized for fanout performance
I am using version 6.1, and I don't think I do some Firebase Cloud Messaging myself anywhere else. Any idea of why I received this message ?
Up to 6.x, the SDK uses the HTTP v1 API for single messages and the batch API for batch/multicast messages (the sendMulticast()
and sendAll()
methods, if I remember correctly.
@domenico-renna I think I must retract my previous message π
I'm not a 100% sure, but I don't have the time or opportunity to search right now...
That makes sense, thank you. I'm in the process of upgrading to 7.12, fortunately we have one more month to do that. The most annoying thing is that I have to upgrade the php engine from 7.4 to 8.1 which might need a few changes here and there (well the main problem I had yet was just a deprecation warning, in fact).
Upgrading PHP versions, thankfully, has become much less of a pain, in my experience, it sounds as if you had a well-maintained code base, if all you got is a deprecation warning π
I'm trying to make upgrading the SDK as painless as possible as well - as long as you're not doing some fancy things, it should be quite easy. I hope π
Version 2.x doesn't even include support for FCM π
sorry see wrong packages. It's midnight time when I last reply. Anyway, below is correct version
kreait/firebase-php 5.26.5 Firebase Admin SDK
kreait/laravel-firebase 2.4.0 A Laravel package for the Firebase PHP Admin SDK
So i need to upgrade to kreait/laravel-firebase v4.x and kreait/firebase-php v6.x to be safe? Currently Im using php 8.0
Ah, got it! You should be safe with your current versions, since your using 5.x of the SDK π€π»
I am using version 4.44.0, do I need to update it?
Yes. If you scroll up, you can see that you'll need at least version 5.
Yes. If you scroll up, you can see that you'll need at least version 5.
In my application, I send Cloud Messages using the sendAll method. In that case, wouldn't it be true that the sendAll method using https://fcm.googleapis.com/batch cannot be resolved even in Ver5?
Uh! You're right! I just thought of the API for sending single messages.
If you use the sendAll()
or sendMulticast()
methods, you indeed need to upgrade to the latest version of the SDK.
Describe the bug
Hi, I'm using an old version of your SDK (5.x) embedded in my company app skeleton with the aim to migrate to the new 7.x release as soon as possible.
Today we receive the following message from google:
Does version 5.x support the new FCM APIs or is mandatory to migrate to last release?
Thanks, Domenico
Installed packages
PHP version and extensions
Steps to reproduce the issue.
Error message/Stack trace
Additional information
No response