Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – Firebase Messaging Inactivity,断开与AppMeasurementService的连接[复制]大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > @L_944_0@                                    3个
我试图使用FCM消息向Android模拟器设备发送通知,但我没有得到任何通知.
谷歌应用程序ID与google-services.json中的相同

这是我从控制台得到的:

D / FA:连接到远程服务

V / FA:处理排队的服务任务:1

V / FA:不活动,断开与AppMeasurementservice的连接

我的build.gradle(模块: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'
}

任何人都知道如何解决这个问题?

解决方法

日志消息:不活动,与AppMeasurementservice断开连接是正常的,并不表示是否存在问题.

编辑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 Setup Guide中的更多细节.

另外,请虑使用最新发布的库版本:9.8.0用于firebase-messaging,25.0.1用于appcompat-v7.

大佬总结

以上是大佬教程为你收集整理的android – Firebase Messaging Inactivity,断开与AppMeasurementService的连接[复制]全部内容,希望文章能够帮你解决android – Firebase Messaging Inactivity,断开与AppMeasurementService的连接[复制]所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。