我想获得通过火力地堡推noptification。虽然试图获得令牌从火力点我得到令牌长度140(无效),有些时候越来越长150相同的设备的有效令牌是上午的测试,所以没有设备特定问题安卓:火力地堡令牌获取无效的长度
无效令牌
APA91bEQ14IejWxNnQ_pzY-GMs3Bx7Wi_0Iib7CKTNVlRGAFujP-VsWQwxBpMB4D1JUV91Ao_E6Ry8qEfJbjGLEEmyPX2oBI7KCmf4BIk5Jqyd456jxFvt2S-zIFyBFI2xwxOf5FwOEN
有效令牌
fzdOrLvN02w:APA91bETJie1o1v8LPWdJKvdI_XzqDdZ7z5FggXZASbD4pp9JLXMGeRudnyLEcY75u0ZVd494znghVJD7ZhZymN7g1bdE07qLocsoOOjlk9TwBa6kgGqHSSsKfENTM62UM_M_azwsvlU
之探源上午公告称,有与有效令牌12个字符冒号。但我不知道是什么原因
的build.gradle
dependencies {
compile 'com.google.firebase:firebase-messaging:9.0.0'
compile 'com.google.firebase:firebase-core:9.0.0'
compile 'com.google.android.gms:play-services:9.0.0'
}
apply plugin: 'com.google.gms.google-services'
清单
<service android:name=".firebase.MyFirebaseRegistrationIntentService" android:exported="false"/>
<service android:name=".firebase.MyFirebaseMessagingService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name=".firebase.MyFirebaseInstanceIDService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
而且正在使用onHandleToken()倍率功能用于获取FCM令牌,那么功能是MyFirebaseRegistrationIntentService
谁能告诉我为什么我得到无效的令牌一些时间。
有由火力令牌检查服务器端的数据库长度没有指定的大小是有限制的任何? – Krutik
@Krutik我向Firebase支持团队提交票据,并确认140的令牌长度无效。 –
你可以添加你的代码来获取令牌吗? –