Android Question 401 error in push solution for android

oscarv

Member
Good afternoon, with the modification that was made to send push messages on Android, I get a 401 error.


Registration connected to: 42005b5b97286659
--------- beginning of main
--------- system start
***Service (start) Create***
** Start of service (boot) **
**Activity (main) Create (first time)**
###########################The file exists
/data/user/0/makoa.rosasarone/files/*********************************************.json
Token could not be created
**Activity summary (main)**
sending message to uninitialized activity queue (submitjob)
***Receiver (httputils2service) Receive (first time)***
**Activity (main) Pause, UserClosed = false **
sending message to queue (sleep)
***Service (startup) Create***
** Start of service (boot) **
**Activity (main) Create (first time)**
###########################The file exists
/data/user/0/makoa.rosasarone/files/***********************************************.json
Token could not be created
**Activity summary (main)**
***Receiver (httputils2service) Receive (first time)***
Response error. Reason: , Response: {
"mistake": {
"code": 401,
"message": "The request is missing required authentication credentials. An OAuth 2 access token, login cookie, or other valid authentication credential was expected. See https://developers.google.com/identity/ login/web/devconsole-project.",
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "MISSING_CREDENTIALS",
"domain": "googleapis.com",
"metadata": {
"method": "google.firebase.fcm.v1.FcmService.SendMessage",
"service": "fcm.googleapis.com"
}
}
]
}

}

I have installed and verified that the access exists in DirInternal and I have even tried using it from DirAssets. I know it's something simple, but I can't find what else to do.
Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
Too les sinformations to help.

Where is the code you are using?
Where is your manifest?
 
Upvote 0
Top