Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase InstanceId: binding to the service failed: Kotlin

App successfully lanches but get this error message in debugging. FirebaseInstanceId: binding to the service failed

App Build Gradle:

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
    applicationId ""
    minSdkVersion 16
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    multiDexEnabled true // enable mun

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

Android manifest:

 <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">
    <activity android:name=".FilterPage"></activity>
    <activity android:name=".filterdashboard" />
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
like image 830
Compass Solutions Avatar asked Jan 05 '20 23:01

Compass Solutions


2 Answers

I downloaded the newest version of google-service.json (can be done via Firebase Settings). In my case there was a new entry added to oauth_client. After syncing with the file system and rebuilding my app the warning does not seem to appear anymore.

EDIT 20-02-2020: After testing this a bit more it unfortunately doesn't seem to help in the end. In my case the error message only for sure occur when starting the app the first time after an uninstall of the app - in most other cases it does not happen.

like image 79
Anigif Avatar answered Oct 08 '22 02:10

Anigif


I have added

<uses-permission android:name="android.permission.INTERNET"/>

In my manifest file and got rid of Firebase InstanceId: binding to the service failed. Hope it will help.

like image 41
Hritik Kumar Avatar answered Oct 08 '22 03:10

Hritik Kumar