Android pubnub chat using parsing that gives invalid authentication key error

I am working on an Android app. In my application, I have to implement pubnub chat with parse.com. I found the following code. github link

Successfully integrated project in the studio Android. After logging in, when I started the chat, the message is not sent, and I receive

Error sending message:[Error: 112-0] : Authentication Failure. Incorrect Authentication Key Error sending message:[Error: 112-0] : Authentication Failure. Incorrect Authentication Key .

If we log in again, I can see all sent messages, but I can not send new messages. Please help me fix this problem.

+5
source share
1 answer

PubNub Access Manager

As indicated in the comments, if you enable Access Manager with your key (which is now FREE for all types of accounts), you must provide access to the auth_key channels for reading and / or writing, which your server generates. See PubNub Access Manager for more information .

If you are not ready to implement this grant on the server side, disable the access manager on your key until you are ready to perform the required behavior on your server.

Once you have the basic functionality, we strongly recommend that you implement the Access Manager functions in your application so that you can control who has access to which channels and what type of access: read, write or manage. PubNub provides all the necessary checks when trying PubNub, but the PubNub client code.

PubNub Parse SDK

For more information on using PubNub with Parse, we have the Parse SDK .

+1
source

All Articles