title: Best practise for checking Google Play Services for receiving Firebase push notifications
body: <p>In my Android App, I use <code>Firebase</code> Notifications. As i know, If user doesn't have <code>Google Play Services</code> installed or properly configured, Can't receive notifications. I have two questions:</p>
  
  <p>1- Is true what I say? If <code>Google Play Services</code> doesn't configured properly, user can't receive Firebase notifications?</p>
  
  <p>2- I use this method to check if user have <code>Google Play services</code> or not, Then register user in <code>Topics</code> and so on... :</p>
  
  <pre><code>GoogleApiAvailability api = GoogleApiAvailability.getInstance();
  int resultCode = api.isGooglePlayServicesAvailable(getApplicationContext());
  if (resultCode == ConnectionResult.SUCCESS) {
      //register in a topic
      FirebaseMessaging.getInstance().subscribeToTopic("all");
  }else{
      alert("You have to install Google Play Services")
  }
  </code></pre>
  
  <p>Is this method is right? My main goal is that if user can't register for <code>Firebase</code> messages, Get informed about the reason and without any error. In fact, Registering maximum users for receiving <code>Firebase</code> messages without any problem. I don't want my App crashes because of Google Play Services...</p>
  
  <p>What is the best practice for these goals?</p>