evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

fixed null token in getFcmToken() on Android #1078

Open efstathiosntonas opened 5 years ago

efstathiosntonas commented 5 years ago

Fixes #1021 #687 #520 #213 #489

evollu commented 5 years ago

is there any docs about the change?

efstathiosntonas commented 5 years ago

Yes, [see here]( https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId#getToken())

public String getToken (String authorizedEntity, String scope)

GnanaPriyaNamasivayam commented 1 year ago

Im facing this null value issue recently on some android devices. Im generating token via FirebaseMessagingService's OnNewToken override method.

The source code change proposed to seem depreciated. Any alternate workaround?