Can't connect server cocos2d-x (auth_error)

0 votes
I connected server on ios simulator successful, but I try to connect on device iPhone 4, but It not work

onConnectDone .. FAILED with reasonCode=0..session=0

And res==AppWarp::ResultCode::auth_error.

Please help me !! I using cocos2d-x v3.5
asked May 2, 2015 in AppWarp by tienbao (16 points)

1 Answer

+1 vote
 
Best answer
Hi Tienbao,

I tested the AppWarpCocos2dx SDK using Cocos2d-x v3.5 on Simulator as well iPhone 5S and it is working fine. I am listing here the possible reasons of auth_error:

1. Trying to connect with a user name which is already connected on some other device. Try to connect with unique user name and see if it works.

2. Trying to connect with wrong keys.

Please verify once and let us know. If that is not the case, then you can share a sample source code so that we can find out what is the problem.

Thanks.
answered May 2, 2015 by rajeev.etc (1,660 points)
selected May 3, 2015 by tienbao
thanks for your response, my issue is resolved. I have problem with 1. User name is already connected.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...