I am working on an android application. In my app I have to implement pubnub chat with parse.com. I found the following code. github link
Successfully integrated project in Android studio.After login , when I started chat message is not senting and I am getting
Error sending message:[Error: 112-0] : Authentication Failure. Incorrect Authentication Key
.
If we login again , then I can see all the messages I sent but can't sent new messages.Please help me to fix this issue.
As indicated by the comments, if you enable Access Manager on your key (which is now FREE for all account types), you must grant read and/or write access to channels on an auth_key that your server generates. See PubNub Access Manager tutorial for more details.
If you are not ready to implement this server side grant logic yet, then disable Access Manager on your key until you are ready to implement the required grant behavior on your server.
Once you have the basic functionality implemented, we highly recommend that you do implement Access Manager features into your application so that you can control who has access to which channels and what sort of access: read, write or manage. PubNub provides all the necessary checks when PubNub operations attempted but the PubNub client code.
For details about using PubNub with Parse, we have a Parse SDK for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With