1

String refreshedToken = FirebaseInstanceId.getInstance().getToken();삼성 S7 에지 7.0.0

상쾌 토큰 값이 null입니다 안드로이드 버전에서 FCM 토큰을하지 않습니다.

내 라이브러리 버전 :

com.google.firebase:firebase-messaging:11.0.2

+0

는 다른 장치에서 작동합니까? – R2R

+0

네, 다른 장치에서 잘 작동합니다. –

+0

com.google.firebase : firebase-messaging : 11.6.2 \t 최신 버전으로 시도하십시오 – R2R

답변

1
This issue is resolve updating version of the library. 
Make sure you have to use the same version of your google play service library and firebase messaging library. 

My old library: 
com.google.firebase:firebase-messaging:11.0.2 

Replace with latest version: 
compile 'com.google.firebase:firebase-core:11.6.2' 
compile 'com.google.android.gms:play-services-gcm:11.6.2' 
compile 'com.google.firebase:firebase-messaging:11.6.2' 
관련 문제