android - 在 oreo 8.1.0 中我无法获取 fcm 设备 id

标签 android firebase-cloud-messaging android-8.1-oreo

我使用的是vivo v9 android 8.1.0 oreo。我找不到设备 ID

我的配置:

implementation 'com.google.firebase:firebase-messaging:17.3.0'
implementation 'com.google.firebase:firebase-core:16.0.3'

类路径:

classpath 'com.google.gms:google-services:4.0.0'

最佳答案

我们需要手动添加此依赖项
实现“com.google.android.gms:play-services:11.0.4”

我们需要在 FCM 消息传递类中创建一个 Channel。

关于android - 在 oreo 8.1.0 中我无法获取 fcm 设备 id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52379966/

相关文章:

android - Firebase 云消息传递是否会自动记录分析事件?

Android Studio无法下载SDK

android - 可以在触摸时显示我的通知栏和标题栏吗?

android - 如何在 Android 上修改可点击 View 的 TalkBack 使用提示?

firebase-cloud-messaging - 是否可以通过firebase云消息传递中断级别(iOS)?

ios - 无法将 iOS CriticalAlert 发送到 Firebase Cloud Messaging

Android Oreo 不播放自定义通知声音

android - 后台服务在奥利奥中不起作用

android - 如何更改密码字段以显示星号而不是点