- Cell Phones 630
- Editors 265
- Education, Science & Engineering 321
- Games 1666
- Internet 570
- Mobile Software 4
- Multimedia & Graphics 1149
- PC 471
- Programming 353
- C# 76
- Data Bases 122
- PHP 54
- Miscellaneous 101
- Security 1452
- SEO 78
- Utilities 891
PHP script for sending push notifications Firebase V1
Uploaded: 15.09.2024
Content: fcmv1.php 2,55 kB
Product description
I suggest downloading a new working PHP script for sending push notifications Firebase Cloud Messaging (FCM) Push Notifications HTTP v1 API, which you can adapt and use in your projects.
The script implements the function of obtaining a token for HTTP v1 authorization (access token) with the function of sending a message to a device token.
The script was written and tested in September 2024.
The script is suitable as an example for developers who are looking for a solution for sending push notifications via firebase, in particular how to get an access token with the new version of FCM V1.
In 2024, the old version of the protocol for sending push notifications to Firebase stopped working and was replaced by a new version of the HTTP v1 API for which this script was written.
https://firebase.google.com/docs/cloud-messaging/migrate-v1?hl=ru
API Firebase HTTP v1 Code example in PHP.
Firebase API HTTP v1 access token PHP example.
Additional information
After payment, you will receive a small script consisting of one PHP file, the code of which contains comments with instructions.