web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Seeking suggestions fo...
Power Apps
Answered

Seeking suggestions for checking internet connectivity within a user's WiFi network.

(0) ShareShare
ReportReport
Posted on by 127

I'm currently working on a project where I need to check if a user's WiFi has an internet connection. While Connection.Connected can be used to check the WiFi connection, it doesn't provide information on whether there is an actual internet connection, making it unhelpful for my current needs.

 

I've attempted to use flow/custom connectors to determine the connection status by waiting for an error to be thrown, but the issue I'm facing is the lack of a timeout option. This causes my canvas app to wait indefinitely for a response from the flow/custom connector, which is less than ideal.

 

With that said, I'm open to suggestions and ideas on how to efficiently check for internet connectivity within a user's WiFi network. Any help would be greatly appreciated!

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    If you have a Premium license, and I assume you do since you are talking custom connectors, you could use a flow with an HTTP action to download a small image from the Internet.  The HTTP action does have an adjustable timeout in settings so you could call the flow, have it try to download the file and then respond to an error or short timeout (1 second) and return that the Internet isn't available.

  • RoopeKorpela Profile Picture
    127 on at

    If the user has no internet connectivity, the flow will not be triggered in the first place since it requires a network connection to receive the trigger from the Canvas app... so it won’t reach the HTTP action.

  • vikas1606 Profile Picture
    206 on at

    hi @RoopeKorpela ,

     

    This is an interesting question. I do know if I can answer but let me try.

    Why do not you send an email using powerapps like below? If the email is successfully sent and received, this indicates that there is an internet connection. If the email fails to send or is not received, this indicates that there is no internet connection.

     

    If(
    IsBlank(
    Office365Outlook.SendEmail(
    "youremail@example.com",
    "Test email",
    "This is a test email to check for internet connectivity."
    ).MessageId
    ),
    "No internet connection",
    "Internet connection detected"
    )

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Good point. 

  • RoopeKorpela Profile Picture
    127 on at

    Thanks for the suggestion, but it feels little too dirty solution for production app that is used by multiple users.

    Not sure though would that work.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Going back and looking at the documentation have you tested that Connection.Connected is true if they have a local WIFI connection, but no Internet connection? The documentation says it checks to see if you are connected to the Internet, not Wifi.  I suspect its using a mechanism in the cloud to check whether it can connect or not, so if you are on Wifi but can't reach the Internet it should still be false.  I would do some testing before you assume it will be true if there is a Wifi connection but no Internet.

     

    One last point about testing. Connection.Connected is always true when you are in the designer or the Web. Its only when running on the Power Apps client in a Published app that Connection.Connected will report its true state.  Otherwise its always true. This can make it hard to test.

  • Verified answer
    RoopeKorpela Profile Picture
    127 on at

    In a forum post, it was mentioned that Power Apps only checks for a Wi-Fi connection when determining connectivity: https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-Offline-Connection-Connected/td-p/183536

    I can confirm this based on my tests using an Android phone to run the canvas app and disconnecting the Ethernet cable from my router to simulate a situation where Wi-Fi is on but without an internet connection.

    It's worth noting that the Power Apps mobile application displays a built-in "no internet connection" popup at the bottom of the phone screen. However, the issue with this popup is that it disappears after tapping it or waiting for a short period. I want to provide my users with a more dependable method of viewing their internet connection status, rather than having them rely on catching a brief glimpse of the popup.

    I suggest we update the information in the documentation to be more precise, as the current phrasing, "indicates whether the device is connected to a network," is somewhat vague.

    I managed to develop a workaround solution for this issue. My approach involves using a Flow triggered by the Canvas app, which, if it doesn't respond after a relatively long time (30-60 seconds), indicates a loss of internet connection. I created an empty Flow with an empty trigger and response for Power Apps. The Flow is called every minute, and I utilize a timer and timestamps to determine if the Flow hasn't been triggered for an extended period. This method allows my app to check the internet connection every minute. Although not ideal, it's the best solution I have come up with so far.


    If anyone finds themselves in a similar situation, please consider voting for this idea:

    https://ideas.powerapps.com/d365community/idea/def481db-b37c-46af-9f80-69a9370d8093

     

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Thanks for the testing.  Its good to have the clarificaton.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard