使用php在Infusionsoft上发送关于android和ios的推送通知
I am using FCM API for send push notification on android and ios
I need to pass header parameters in post method.Is it possible?
I got below error:
Didn't run because: Unexpected HTTP response code: 401 (Unauthorized) Response body: The request was missing an Authentication Key (FCM Token). Please, refer to section "Authentication" of the FCM documentation, at https://firebase.google.com/docs/cloud-messaging/server.
The request was missing an Authentication Key (FCM Token). Please, refer to section "Authentication" of the FCM documentation, at https://firebase.google.com/docs/cloud-messaging/server.
Error 401
below is screen shot;
我在Android和ios上使用FCM API发送推送通知 p>
我需要在post方法中传递头参数。是否可能? p>
我得到以下错误: p>
没有运行 因为:意外的HTTP响应代码:401(未授权) 响应正文:请求缺少身份验证密钥(FCM令牌)。 请参阅 https:// firebase,参阅FCM文档的“身份验证”部分。 google.com/docs/cloud-messaging/server 。 p>
请求缺少身份验证密钥(FCM令牌)。 请参阅 https:// firebase,参阅FCM文档的“身份验证”部分。 google.com/docs/cloud-messaging/server 。 h1>
错误401 h2> blockquote>
以下是屏幕截图; p >
I guess Firebase has upgraded its server keys to a new version. Why don't you try "Legacy Server Key" for authorisation instead of server key.