ech*_*lik 2 curl firebase firebase-cloud-messaging
The problem is as stated above. If I try to subscribe to a push notification via the url: https://iid.googleapis.com/iid/v1/{token}/rel/topics/{topic}, I always get the following response: {"error":"InvalidToken"}
I have tried using both GET and POST methods but still the same response.
I have checked if the Token is a valid token by using the following url: https://iid.googleapis.com/iid/info/{token} which return the correct data like this:
{
"application": "com.chrome.windows",
"subtype": "wp:http://localhost/#2A58747F-DEF7-4C55-8073-126B2D168-V2",
"authorizedEntity": "856365479457",
"platform": "WEBPUSH"
}
Run Code Online (Sandbox Code Playgroud)
If my token is valid, then why I am getting the error invalid token?
| 归档时间: |
|
| 查看次数: |
2609 次 |
| 最近记录: |