I am using Firebase Cloud Messaging
for my android development with PHP
as server side language. Right now, i'm able to :
Receive push notification sending using Firebase Console either both real apps and emulator.
Got it working when testing it out from terminal(curl)
So then, i tried sending from apps server
(using php curl) instead of Firebase Console
. And right now, encountered this weird message InvalidTokenFormat, Error 400
every time i'm request the POST request. Any thought?
Here is the link for Firebase Api were made : FirebaseApi Class
Feel free to ask for any inputs from meif above use case didn't clear enough. Thanks.
php curl
! (AutorizationToken) ?!Authorization: key=some keys
header?FirebaseApi Class
- pastebin.com/sk72Czz8 file. The curl code insideinit()
method body. To make a request, i just initiatedFirebaseApi
class and callinit()
method