Android pubnub chat using parse giving incorrect authentication key error

490 views Asked by At

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.

1

There are 1 answers

0
Craig Conover On

PubNub Access Manager

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.

PubNub Parse SDK

For details about using PubNub with Parse, we have a Parse SDK for that.