Attempt to invoke virtual method com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference

652 views
Skip to first unread message

Kartikay Singh

unread,
Dec 11, 2018, 9:59:12 AM12/11/18
to Firebase Google Group
Hi all,
I am trying to upgrade firebase-messaging library to the latest version available 17.3.4(earlier version in my project is 11.0.4). But after upgrading to the latest version replacing onRefreshToken() with onNewToken(string). I am not receiving any callback in the onNewToken() method. also i tried fetching the access token on the app launch but it throws the error (as mentioned in the subject)


PS : previous method is working (onRefreshToken())

Stuck on this for 2-3 days now. Any help will be appreciated.

Thanks,
Kartikay
Reply all
Reply to author
Forward
0 new messages