Overview
MegoChat is one of the module of MegoGrid. So here I am explaining what MegoChat is and how it works for an Ios App Developer.
Now a days , Mobile Technology is becoming too vast for the ease of the world, keeping the KISS principle (Keep It Short and Simple), Developers are doing their best to make the world Techno Freak. As their time is too precious, Frameworks are being developed to save the time. So, Every developer needs details of their application users, by which they could kept record of each and every brief detail of their user, which he/she could use accordingly.
Now I am sure, Everybody have some questions in their mind, So lets start knowing What, Why and How? about MegoChat.
MegoChat Demo is an app which provides real time enviroment for singlechat, groupchat and chatrooms. This app is available in App Store and its source code available on Github.You can take all reference of source code and how we integrate a power platform of Mego Chat to initiate chatting in any of the described chat type said earlier.In this document we will represent and guide you how we can integrate Mego Chat to an App and how this power framework makes chat mechanism so simple whether it is registered by our MegoChat SDK or any custom self registration provided by you. (How you can integrate your self registration mechanism with this module is described later in this document). This tutorial is divided into several parts, each focusing on a different aspect of our Mego Grid Demo App. Feel free to read them in any order, but we recommend that you download the source code and refer to it while reading. Some parts of the code were omitted or changed in this tutorial in order to keep it clear and concise, so you may find it useful to keep the full version close at hand.
MegoChat demo architecture
MegoChat contains some of the helper class for photo editing effect: slideView show all the option in slide view DownloadimageHistoryViewController shows the saved images history, FlipRotate this controller apply rotate images in different direction, UIImage+Filtering and ALAssetsLibrary+CustomPhotoAlbum this two Catagories apply different Effects on the images help content of app
Aside from basic functinality we had integrate our MeGoGrid Api in differnt section of application
-
WelcomePage : handles the initialization of MegoChat SDK.
Getting Started
Authorization
To use the MegoChat SDK first of all you need to authenticate your application/device with our server. So to authenticate your application/device use the Authentication-Layer SDK and call the below mentioned code in your app launcher Activity. Integrating Authorization SDK in your Ios app
Inside the didFinishLaunchingWithOptions method of your AppDelegate.m configure MegoAuthorizer SDK .
AuthManager =[[MewardAuthenticate alloc]init]; [AuthManager Intialize]; |
Authentication
The MegoGrid Demo app represents here the use of MegoChat SDK. MegoChat use the two way mechanism to the user to register his/her device/application on our server. These are as described below:
- Number verificaion ( OTP system) with MegoChat SDK
- Self Registration System
Here we have provide the integration of MegoChat with option one described above along with MegoChat SDK.
Integrating MegoChat SDK in your Ios app Before integrating MegoChat SDK you have to configure the required details on our MegoGrid CMS Panel provided to you by us for MegoChat SDK and MegoChat SDK both. Here you have to provide the SMS option, a user of your app will have for registration of their devices/application. For this Demo App we have already configured all the detials (dummy configuration) so that you can download and check how this unique system works or you can check if it suits your developemnt need.
Please call the walcomePage class and start MegoChat SDK in DemoApp.
WelcomePage *ChatObj=[[WelcomePage alloc]init]; [self.navigationController pushViewController:ChatObj animated:NO]; |
Chat
Overview
In this demo app we have represent following types of chats which is represent in this demo application of chat
- Single Chat: This feature provide single chat among the friends in realtime among app users.Using this one application user able to communicate with other user of that application as well this feature provides one to one textual chat among with map,files and media sharing.In this chat user is able to see offline,online,typing status which is controlled by the developer from MegoChat CMS.Those things developer enables from CMS is reflecting in the application
- Group Chat: This feature provides real time chat among the multiple friends which are the part of that group.This feature also allows user to share textual chats along with the media,map,files and media among the all friends in realtime.
- Room Chat: This feature is like open rooms which configure by developer from MegoGrid CMS which is not modifyable and users have ease they can enter in any open room without any kind authentication neither from MegoChat nor by developer on.in this type of chat user can enter in the chat window and able to chat with the users already avalable in the room
This part of stuff and now chat demo app is ready