unifiedpush/FCM: also allow FCM for SERVICE_VERSION_UPDATE_REQUIRED

To fix inbuilt FCM on Android 7

Change-Id: Ia2aca76b5718cce3c7828b00a604d58cf9f3676e
This commit is contained in:
SpiritCroc 2022-05-17 10:33:47 +02:00
parent 1eed611f4e
commit 91cff797f0
1 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,6 @@ object FcmHelper {
fun isPlayServicesAvailable(context: Context): Boolean {
val apiAvailability = GoogleApiAvailability.getInstance()
val resultCode = apiAvailability.isGooglePlayServicesAvailable(context)
return resultCode == ConnectionResult.SUCCESS
return resultCode in listOf(ConnectionResult.SUCCESS, ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED)
}
}