私はFirebase経由でプンプ・ノンプトンを取得しようとしています。 firebaseからトークンを取得しようとするとすると、140(無効)としてトークンの長さを取得していますが、長さ150同じデバイスの有効なトークンを取得いくつかの時間が午前のテストなので、何のデバイス固有の問題Android:Firebaseトークンの長さが無効です
無効なトークン
はありません、有効なトークンのための12の文字とコロンがあるAPA91bEQ14IejWxNnQ_pzY-GMs3Bx7Wi_0Iib7CKTNVlRGAFujP-VsWQwxBpMB4D1JUV91Ao_E6Ry8qEfJbjGLEEmyPX2oBI7KCmf4BIk5Jqyd456jxFvt2S-zIFyBFI2xwxOf5FwOEN
有効なトークン
fzdOrLvN02w:APA91bETJie1o1v8LPWdJKvdI_XzqDdZ7z5FggXZASbD4pp9JLXMGeRudnyLEcY75u0ZVd494znghVJD7ZhZymN7g1bdE07qLocsoOOjlk9TwBa6kgGqHSSsKfENTM62UM_M_azwsvlU
diffrenceアム通知。しかし、私は知らないどのような理由
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>
そしてFCMトークンを取得するためonHandleToken()オーバーライド機能を使用しています、それに関数はMyFirebaseRegistrationIntentServiceにあります
誰でも、なぜ無効なトークンを取得しているのか教えてください。あなたは、コードの下に使用してfirebaseにトークンを取得することができます
全く指定されたサイズは、トークンチェックサーバ側のDBの長さのためにfirebaseではありませんが任意の制限はありますか? – Krutik
@Krutik Firebaseサポートチームにチケットを払い、140のトークン長が無効であることを確認します。 –
トークンを取得するコードを追加できますか? –