DynamicLinksClient is not available error while implementing firebase dynamic links in flutter

Viewed 411

W/GoogleApiManager( 1448): The service for com.google.firebase.dynamiclinks.internal.DynamicLinksClient is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null} E/flutter ( 1448): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [firebase_dynamic_links/unknown] com.google.android.gms.common.api.ApiException: 17: API: DynamicLinks.API is not available on this device. Connection failed with: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null} E/flutter ( 1448):

I had followed the exact steps given in https://firebase.flutter.dev/docs/dynamic-links/usage

1 Answers

Make sure, that your device have google services.

For emulator: create one with play store icon. enter image description here

For physical device make sure that this device is not in banned from google lists. For example Huawei devices.

based on this issues: https://github.com/firebase/flutterfire/issues/8397

Related