Base solution for your next web application
Open Closed

User is not showing online if user is logged in App #10541


User avatar
0
kansoftware created
  • What is your product version? -v8.1
  • What is your product type (Angular or MVC)? - MVC
  • What is product framework type (.net framework or .net core)? - .net core Android App ionic 5

User is not showing online in chat window in web if one user is logged in app and other one is logged in web. Chat is working fine by App but not showing online icon both side. Is any api require for this and how to manage if app closed or forcefully closed.

Thanks!


1 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @kansoftware It uses OnlineClientManager to check if the person is online. Check https://aspnetboilerplate.com/Pages/Documents/SignalR-Integration?searchKey=IOnlineClient#online-clients To set your app as an online client you can connect to signalr hub from ionic app. Or you can implement your own code here: https://github.com/aspnetzero/aspnet-zero-core/blob/39f9c6ab314eb56580e33205c426cfb11f618519/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Chat/ChatAppService.cs#L52-L57