Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
Expand all | Collapse all

Real-time communication between PowerApps sessions

  • 1.  Real-time communication between PowerApps sessions

    Posted Nov 19, 2020 08:55 AM
    Has anybody had any luck creating PowerApps that enable real-time communication between individual sessions of the app? I've seen demos of SignalR, but haven't been able to wrap my head around it.

    I have a Request app that allows our Commissioners to Request to Speak, vote, and time speakers, plus a related Viewing app to bring the data into our production system and out to the room TVs. The apps currently rely on patching and 2-5 second timed refreshes of a SharePoint list. The voting and Request to Speak parts of the apps work great, even though there's a 5-second delay for showing changes. The timer has been difficult, however. When the Clerk starts the timer on her Request session, the Viewing app sees that change within a couple seconds and starts the timer there. Between the polling delay and tendency for the app timers to be highly inaccurate, by the end of a 3 minute countdown the timers could be 10 seconds off. The variance increases greatly as the timer length is increased. I tried just not showing the countdown on the Clerk's app, but that didn't go over well. I have a couple ideas in mind to circumvent the timer issues, but I was hoping for a better solution that doesn't use the timers and refreshes.

    Thank you!

  • 2.  RE: Real-time communication between PowerApps sessions

    Gold Contributor
    Posted Nov 20, 2020 02:36 AM
    Hello Jonathan,

    Beside using timers and refreshes maybe you could use the PowerApps Notification connector from Power Automate using a PowerApp triggered flow.
    I have never tried it but it could be a lead.

    Best regards,

    Alaa Bitar
    Serial Sa

  • 3.  RE: Real-time communication between PowerApps sessions

    Posted Nov 20, 2020 03:12 PM
    @Alaa Bitar - Thank you for the tip. I had thought the Notification was only for notifying back to the sending PowerApps session, but I'll give it another look to see if it can send data to all connected sessions.

    Thank you!

  • 4.  RE: Real-time communication between PowerApps sessions

    Posted Nov 21, 2020 04:25 PM
    Hello Jon,

    Have you looked at Push notifications?  They pop-up on the recipients phone or tablet.  Easy to implement in Power Apps, I've used them on an app myself.  They may not meet your definition of 'real time' but they are quick and can be directed to individual users

    I wrote a short blog recently showing how to implement Push: https://hiredgun.tech/push-notifications

    I hope it helps

    Chris Harper