Solved: FCM push message Error:301 Moved Permanently
Posted: Mon Sep 09, 2024 2:40 pm
Before I start digging in, I wanted to check if this is some issue that everyone is having.
I had notifications working for years, and I already forgot how I have set it up.
Then, they stopped working recently, and I get this "Moved Permanently" error in the logs.
I noticed on the FCM site there is this:
Caution: Sending messages (including upstream messages) with the FCM XMPP and HTTP legacy APIs was deprecated on June 20, 2023, and will be removed starting June 2024. If you are using the legacy FCM send APIs, we strongly recommend that you migrate to the HTTP v1 API or consider using the Admin SDK to build send requests.
Thanks!
I had notifications working for years, and I already forgot how I have set it up.
Then, they stopped working recently, and I get this "Moved Permanently" error in the logs.
I noticed on the FCM site there is this:
Caution: Sending messages (including upstream messages) with the FCM XMPP and HTTP legacy APIs was deprecated on June 20, 2023, and will be removed starting June 2024. If you are using the legacy FCM send APIs, we strongly recommend that you migrate to the HTTP v1 API or consider using the Admin SDK to build send requests.
Thanks!