String refreshedToken = FirebaseInstanceId.getInstance().getToken();
刷新的令牌值是null
。
我的图书馆版本:
com.google.firebase:firebase-messaging:11.0.2
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'