Skip to main content

set user online

  • make sure to use this function only if user already authorized in vchat systemand your system
  • other will throw "You must log in or register to v chat first delete the app and login again !" wrap it with if condition
if(isAuth){
// make sure to auth
VChatController.instance.bindChatControllers(context: context);
}

this method also accept email: GetStorage().read("myModel")['email'] pass current user email if your app already in production, and you migrate old users Call this method in (home page) the page which will open every time you open the app because it will make the user online and start notifications service Example