In my Android App, I use Firebase
Notifications. As i know, If user doesn't have Google Play Services
installed or properly configured, Can't receive notifications. I have two questions:
1- Is true what I say? If Google Play Services
doesn't configured properly, user can't receive Firebase notifications?
2- I use this method to check if user have Google Play services
or not, Then register user in Topics
and so on... :
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")
}
Is this method is right? My main goal is that if user can't register for Firebase
messages, Get informed about the reason and without any error. In fact, Registering maximum users for receiving Firebase
messages without any problem. I don't want my App crashes because of Google Play Services...
What is the best practice for these goals?