Samsung S7 edge 在 android 版本 7.0.0 中未获得 FCM 令牌

Samsung S7 edge does not get FCM token in android version 7.0.0

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'