Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 3
    It will check in every page load is it right?. Without page refresh if the connection is gone i need to notify the user. And its reconnected that also need to inform. How can i make like that? Commented Oct 6, 2017 at 6:55
  • 4
    It always returns True Commented Dec 18, 2017 at 5:10
  • @Sajeetharan I am using the Same code as posted in the answer but it always returns true. Why? Commented Nov 6, 2018 at 15:02
  • @PrashantPimpale check my answer. Commented Jul 17, 2019 at 5:37
  • @DilshanLiyanage okay Commented Jul 17, 2019 at 5:42