Login/Logout

Include the MessageSDKBinding.iOS in the .cs file of your ViewController.

All the method calls will invoke their respective callback blocks as defined below.

1. Initialize CometChat object

private CometChat _cometChat = new CometChat("Your Api Key");

2. Login to CometChat
Login to CometChat on your website by any of the 3 available methods. Also make sure that your chatlogin() function in integration.php should be configured to handle any of the login mechanisms you opt for.

a) You can login to CometChat using the userID. All data related to the previous user will be cleared.