Ready UI

Include Readyui.js in your index.html file to access Ready UI functionality in your Cordova app

Ready UI offers you the following apis:

Set url
Pass the url where you have installed CometChat by using setUrl() function.
e.g

ReadyUI.setUrl("API-Key");

Login and Launch CometChat
Login to CometChat by passing username and password to the function loginWithUsername(username,password).
e.g

ReadyUI.loginWithUsername("John","passw0rd");

Launch Chat window
If you wish to load the chat window of any specific user instead of opening the entire chat app you can use chatWithMe(userid) function. Pass the user id of the user with whom you wish to chat.
e.g

ReadyUI.chatWithMe("2")

Not finding what you need?

The CometChat team is here to help!