我是一名新手安卓开发者。最近学会了如何使用Firebase云消息传送服务。之前测试过它是可以正常工作的,但现在它无法正常工作。我想知道是否是由于FCM出了问题。
上个月,我发布了我的应用程序,并依赖以下组件:
compile 'com.google.firebase:firebase-messaging:9.0.0'
我已经在多个设备上测试过,Firebase控制台可以成功地向所有设备发送通知。
一周前,我注意到有9.0.2版本,但我还没有使用这个新的依赖项发布我的应用程序。是否正确的是,每当Google推出新版本的firebase-messaging时,所有运行旧依赖项的设备都将无法接收通知?
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.google.firebase:firebase-messaging:9.0.0'
}
apply plugin: 'com.google.gms.google-services'