Sending notifications to Google Cloud Messaging with php gives me Unauthorized Error 401

前端 未结 2 1381
孤街浪徒
孤街浪徒 2021-01-15 18:02

Searching for some info about how to send notifications using GCM but with PHP instead of servlets, i found this: GCM with PHP (Google Cloud Messaging)

I tested the

相关标签:
2条回答
  • 2021-01-15 18:35

    Solved!!!

    you must use Key for server apps (with IP locking) instead of browser key

    :)

    0 讨论(0)
  • 2021-01-15 18:44

    You need to use the key for server apps in the field of API key in your server side coding. While creating the server key don't enter anything inside IP address field.

    0 讨论(0)
提交回复
热议问题