简体   繁体   中英

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

String refreshedToken = FirebaseInstanceId.getInstance().getToken();

Refreshed Token value is null .

My library version:

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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM