1

I am using Firebase in My Android App for Login & Register. App Login Page is My Launcher Activity. I want to have a functionality that if user is not connected to Internet or WiFi, it Shows the pop-up of No Internet Connection. How to Achieve It ?

random.123
  • 45
  • 7

2 Answers2

0

You can use this answer : How to catch an Exception if the Internet or Signal is down

Or check result / put try - catch around GoogleSignIn.getClient(this, gso);

Turbolay
  • 78
  • 9
0

You should look at this question to detect if internet is connected. If no, use AlertDialog (or any other "pop-ups") to show message to user.

BlizzedRu
  • 340
  • 1
  • 2
  • 10