Base solution for your next web application
Open Closed

POPUP EXTERNAL CALL #2179


User avatar
0
hasan created

Guys,

We need to have this functionality. Please share your sugrastion

One of the Module in our application has CRM and it is Integerated with CALL CENTER SOFTWARE (It routes the THE CALL to the operator directly based on routing algorithm and it is capable to call the URL in the OPERATOR MACHINE)

Whenever URL is getting called, I want to display the popup in the already opened page. The page has to autotically closed once the URL is invoked. I have attachéd a SAMPLE as well

Is it possible to do through the SIGNALR ?


6 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi Hasan,

    It's a good candidate to be implemented via SignalR.

    While you can go with your own way, as you probably know, ABP has IOnlineClientManager. You can inject it into your class and call GetAllByUserId or IsOnline methods to check if current agent user is online. Then you can call client side from server via a Hub connection. We do similar thing for notification system.

  • User Avatar
    0
    hasan created

    Thanks

    I am understood Correct, I have to call the URL (WHICH HAS THE MVC CONTROLLER), the Controller should send the notification to all the registered subscriber.

    The Subscriber should check whether the Client is Online. if it is online, it should give the popup.

    Is that correct ?

  • User Avatar
    0
    hasan created

    Hello Hilkan

    Can you give me a example ?

    It will be really helpful

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Hasan,

    For example here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Core/Chat/ChatMessageManager.cs#L135">https://github.com/aspnetzero/aspnet-ze ... er.cs#L135</a>, we get all online clients of a user and use his/her clients to send a chat message to user.

    You can implement same thing for your case.

    Thanks.

  • User Avatar
    0
    hasan created

    Thanks Sir.

    I am using Abp.Zero.0.8.1.0

    I can easily find out the User from IOnlineClientManager

    How to send a message to the User and also how to receive it in the UI?

    Is there any example or you can guide me. Can I try it?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can check below code in AspNet Zero's chat feature

    1: Sending message from server to clients <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Web/Chat/SignalR/SignalRChatCommunicator.cs#L35">https://github.com/aspnetzero/aspnet-ze ... tor.cs#L35</a>

    2: Handling sent message on the client side. <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Web/Common/Scripts/Chat/chat.signalr.js#L31">https://github.com/aspnetzero/aspnet-ze ... alr.js#L31</a>

    Thanks.