I am getting exception from google saying:
java.io.IOException: Received authentication challenge is null
I read that this is reproducing 401 error. So this
Indicates that the ClientLogin AUTH_TOKEN used to validate the sender is invalid.
But i have everything registreted and logined with ClientLogin successfully.
So what wrong could be?
Also do i need to reigstrate my app here ?
Sing up for C2DM
Because i haven't
Thanks
Have u register your app on the given link . Also you should get mail from C2DM on mail id which you have mention in Contact email address.
Related
After the push function is integrated, the server interface returns error code 80300007 when a push message is sent to some users. I am using a Mate 30 as a test device to obtain a token.
After the server sends a push request, the following response is returned:
{"_code": "80300007", "_msg": "All the tokens are invalid", "_requestId": "159496699937460153003301"}
In which situations user token will become invalid? This is because the server knows this only when invoking a push request. Can the client determine that if the token is invalid? What should the client do after the token expires?
Error code 80300007 means your token parameters are invalid according to the official guide. Please check your token parameter.
The message receipt capability can be accessed. If invalid tokens are found based on the receipt, push message will not sent to the tokens. For details, please check:
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-receipt
I am trying to implement Huawei in App Purchase kit to my application.
The request I am sending to the server is here:
request {"purchaseToken":"0000017343ec91821b076fd75f71103a5a85595d2dfd245d708fd6058e676f857792b83622c7fd51x434e.1.100059717","productId":"1007"}
I am following this guide here : https://developer.huawei.com/consumer/en/codelab/HMSInAppPurchase/index.html#0
I am following the same steps but
I am getting an error message from server which says :
result: {"responseCode":"6","subErrCode":"211","responseMessage":"6-211-authorization format invalid"}
Which part I might be doing wrong?
In the error you are getting, it says "authorization format invalid". This means your ignature verification data format is invalid. The possible errors might be :
The token in the request header is not encrypted in Base64 mode.
The character string APPAT is not appended before the access token for authorization. The correct access token is similar to APPAT:thisIsAppAtVaule.
for more information, please check : https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/iap-FAQ
You are facing issue in server side. Kindly go through the given link to know more about In App Purchase server side and client side.
In-App Purchase Article Develioper Forum:
Client side : https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201255229704010231&fid=0101187876626530001
Server side : https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201273064244120101&fid=0101187876626530001
In-App Purchase Github Link :
Client side: https://github.com/DTSE-India-Community/HMS-In-App-Purchase-Kit
Server side:
https://github.com/DTSE-India-Community/Huawei-In-App-Purchase-And-Push-Kit-Server_Side-Implementation
I'm trying to send REST messages from ServiceNow tool to FCM, but getting "Invalid username/password combo" message. Firstly wanted to test this in POSTMAN, but still getting [JSON_PARSING_ERROR: Unexpected token END OF FILE at position 0.].
The full error message I get from ServiceNow is as following:
DEBUG: origin=push auth="MTdhMzhhNTJmZGMxNGQwMGJjNjY4Mjc5YTEzNDBiMWM6U1d0Y1RjOUE1T2paQWd2NTdmVUg=" Adding authorization header
SEVERE * ERROR * app="[APP_NAME]" request=b819e5c92ea4b2006ead1a337b41f078 origin=push elapsed=41 status=401 rest error message: Method failed: (/fcm/send) with code: 401 - Invalid username/password combo
As we're not using any login/password for REST message, I assume there must be an issue with Server Key. I've read many threads here about 401 error, but still could not fix an issue. I'm using the long one (not legacy) server key from FCM console cloud messaging tab.
Kindly help, if someone has any ideas
Actually,i have used ramachandru6#gmail.com as a "sender id" in my app and that same id and same password used for getting authentication tocken.but still am getting 401 error.
i have spent more than two days.please any one guide me.what i have to do?
IN GCM there is nothing like using id and password for authentication. When you set up your app in GCM it will give one server side token. Use that as a key
I am working with a messaging application using c2dm.. I get registered my app with c2dm..But the time am sending message to any particular id who is using my app, getting errors saying that "Sender Id mismatch".. What it will be ? can anyone help me ?
you need to set the sender_id in the client code with the email
address you registered to the c2dm servers (the one you use in the
http post to send messages).
usedintent.putExtra("sender","yourMail#gmail.com");