You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If anyone wants to migrate/upgrade this API please have at it. It is light and nimble but is going to require a decent amount of rewrites to support the HTTP v1 API - the Legacy FCM api that this repository interfaces with is now retired and not supported anymore.
For the moment, I am moving to "firebase-php" as it is an active and fully supported HTTP v1 interface. I don't need all the extra stuff from firebase-php, yet I also do not have the time to recode this php-fcm repo.
The text was updated successfully, but these errors were encountered:
use Kreait\Firebase\Exception\FirebaseException;
use Kreait\Firebase\Exception\MessagingException;
use Kreait\Firebase\Messaging\AndroidConfig;
use Kreait\Firebase\Messaging\CloudMessage;
$config = AndroidConfig::fromArray([
'ttl' => '3600s',
'priority' => 'normal',
'notification' => [
'title' => '$GOOG up 1.43% on the day',
'body' => '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.',
'icon' => 'stock_ticker_update',
'color' => '#f45342',
'sound' => 'default',
],
]);
$cloudMessage = CloudMessage::withTarget('token', $token);
$cloudMessage = $cloudMessage->withAndroidConfig($config);
Its JUST the cloud messaging...so its light compared to the full firebase-php I listed above...but I am almost done with my full fireabase-php migration; so once I am done with that I don't see me working on more FCM stuff anytime soon.
If anyone wants to migrate/upgrade this API please have at it. It is light and nimble but is going to require a decent amount of rewrites to support the HTTP v1 API - the Legacy FCM api that this repository interfaces with is now retired and not supported anymore.
For the moment, I am moving to "firebase-php" as it is an active and fully supported HTTP v1 interface. I don't need all the extra stuff from
firebase-php
, yet I also do not have the time to recode this php-fcm repo.The text was updated successfully, but these errors were encountered: