Anybody ever had problems with Connection.Connected in Power Apps?

Connection.Connected is a piece of code in Power Apps that helps you identify if you are online or not. But what if it doesn’t work?

Introduction to Connection.Connected

First of all how should this Connection.Connected work?

If( Connection.Connected, {Value: "Online"}, {Value: "Offline"})

This way we can for example set a connection indicator in an app.

Online Indicator controlled by Connection.Connected
Online Indicator controlled by Connection.Connected

When you are connected you could display the word Online and when you are offline then display Offline. Of course being connected doesn’t mean that you have a connection to the internet.

Imagine that you are connected to your Wifi, but your Wifi isn’t connected. Then the app will still mark you as connected.

This is all known territory and totally acceptable.

Why use Connection.Connected?

Well, you could use Connection.Connected to identify if you want to update your tables, lists or any other datasource, or if you want to update a collection or files on your local device using LoadData and SaveData.

What’s the problem?

This time I need your help! After 1000+ posts it is time to get some help from my followers.

First of all I’m not able to reproduce the issue. So I’m hoping that someone else has experienced the same. My client’s users when they are on a screen in the app, they are offline. They wait for about 90 seconds after they have gone offline. Then the Connection.Connected returns true again. This is without going online.

Windows still knows that the system is offline. But the Power Apps app, gives us a true value for Connection.Connected.

  • I’ve looked at their network. There are no VPNs or other potential network trouble makers in play
  • Even if the current screen doesn’t look at reading or writing any online data the problem still occurs
  • I create a simple app that doesn’t do anything other than displaying a green or red dot and then the problem doesn’t happen. So it must be something to do with the app.
  • Replace the network connection when we initially start the app (use a mobile connection instead), but the problem still happens for the client.
  • Check that the Windows Power Apps app, has the latest version installed.

If you have a experienced this problem or if you have a solution then please let me know.


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Related Posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains

Subscribe now to keep reading and get access to the full archive.

Continue reading