[Vortex] FCM: Update general payload for new firebase v1 API
Review Request #1089 — Created Jan. 11, 2024 and submitted — Latest diff uploaded
Information | |
---|---|
b.stoop | |
Lunr.Vortex | |
fcm/updatepayload | |
|
|
1116, 1090 | |
f58793b... | |
Reviewers | |
lunr | |
Based on master
FCM: Update general payload for new firebase v1 API
https://firebase.google.com/docs/cloud-messaging/migrate-v1?hl=en&authuser=0#update-the-payload-of-send-requests, The payload needed some updates for this to work with the new firebase API.
Also referenced https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages.
Github Actions run: https://github.com/brianstoop/lunr.vortex/actions/runs/7843990001
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 5. See what's changed.
orig
1
2
3
4
5
src/Lunr/Vortex/FCM/FCMPriority.php |
---|
src/Lunr/Vortex/FCM/FCMDispatcher.php |
---|
src/Lunr/Vortex/FCM/FCMPayload.php |
---|
src/Lunr/Vortex/FCM/Tests/FCMDispatcherPushTest.php |
---|
src/Lunr/Vortex/FCM/Tests/FCMPayloadBaseTest.php |
---|
src/Lunr/Vortex/FCM/Tests/FCMPayloadGetTest.php |
---|
src/Lunr/Vortex/FCM/Tests/FCMPayloadSetTest.php |
---|
tests/statics/Vortex/fcm/collapse_key.json |
---|
tests/statics/Vortex/fcm/data.json |
---|
tests/statics/Vortex/fcm/fcm.json |
---|
tests/statics/Vortex/fcm/time_to_live.json |
---|