You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have restful backend app with auth system, where when user log-in,
backend will validate the fcm by fetch with POST method to https://fcm.googleapis.com/fcm/send
With payload like this: { "registration_ids": [ "fcm_token..." ] }
The problem is, sometime it return failure status 1 on first check, but on second/third check, it return succes status 1.
Steps to reproduce:
Get the fcm token from android app (flutter)
Fetch with POST method to https://fcm.googleapis.com/fcm/send with payload: { "registration_ids": [ "fcm_token..." ] } (with backend or postman, doesn't matter)
Randomly return failure status: 1
Observed Results:
I have no idea why is this happen, but mostly happen on first validate (when the token is not validated for a while).
It also happen when I spam fetch it, it give a failure result around 1/10.
Expected Results:
Not return failure status=1 because the token is still valid
Relevant Code:
-
The text was updated successfully, but these errors were encountered:
Step 1: Describe your environment
Step 2: Describe the problem:
I have restful backend app with auth system, where when user log-in,
backend will validate the fcm by fetch with POST method to
https://fcm.googleapis.com/fcm/send
With payload like this:
{ "registration_ids": [ "fcm_token..." ] }
The problem is, sometime it return failure status 1 on first check, but on second/third check, it return succes status 1.
Steps to reproduce:
{ "registration_ids": [ "fcm_token..." ] }
(with backend or postman, doesn't matter)Observed Results:
I have no idea why is this happen, but mostly happen on first validate (when the token is not validated for a while).
It also happen when I spam fetch it, it give a failure result around 1/10.
Expected Results:
Not return failure status=1 because the token is still valid
Relevant Code:
The text was updated successfully, but these errors were encountered: