Firebase Messaging Inactivity, disconnects from AppMeasurementService

I am trying to send notifications to my Android Emulator using FCM messages, but I am not getting any notifications. google app id is the same as inside google-services.json

this is what i get from the console:

D / FA: connected to a remote service

V / FA: Handling Queued Tasks: 1

V / FA: Inactive, disconnected from AppMeasurementService

my build.gradle (Module: app):

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"
    defaultConfig {
        applicationId "com.example.cris.firebasenotificationexam"
        minSdkVersion 22
        targetSdkVersion 23

....

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    apply plugin: 'com.google.gms.google-services'
    compile 'com.google.firebase:firebase-messaging:9.0.2'
}

Does anyone know how to fix this problem?

+4
source share
1 answer

Log message: Inactivity, disconnecting from the AppMeasurementService, is normal, not an indicator if there is a problem.

build.gradle:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.google.firebase:firebase-messaging:9.0.2'
}

// Moved the following statement.  Was in the dependencies block
apply plugin: 'com.google.gms.google-services'

Firebase.

: 9.8.0 firebase-messaging 25.0.1 appcompat-v7.

0

Source: https://habr.com/ru/post/1660791/


All Articles