Hi Bhavesh,
AppWarp provides communication channel between two connected users on real time. This requires continuous socket based connectivity between server and client. The basic requirement for this is app need to be in forground otherwise the socket connectivity will be broken. That is reason we need to call connectWithUserName API everytime app opens and player need to start chatting. Generally for chatting, whenever chatting window opens you can call connectWithUserName API.
Coming to the your query, could you please provide following informations:
1. Are you getting Auth_Error which resultCode=1 in onConnectDone callback?
2. Does your user need to login in the app to use the app?
Could you please explain your app flow so that we can suugest how to inetgrate AppWarp in best possible way?
Thanks.