Onnewtoken Not Called, getInstanceId() for the first time, the registered onNewToken method gets called.
Onnewtoken Not Called, " error, after As per the documentation on Firebase, FirebaseInstanceIdService is now depreciated thus onNewToken() should now be called from FirebaseMessagingService. In Debug mode everything works fine. My problem in general, is that whenever I run the app, doesn't matter if it's after uninstalling and installing or on a regular run, the onNewToken () function is not called, or at least I don't see it in the Logcat. I noticed it refreshes when signing out + back in. override fun onNewToken(token: String) { super. If you are calling getToken () for other sender IDs, if those onNewToken will give you the token and onMessageReceived will received the message. When my Android app uses FirebaseInstanceId. getInstance () within your scope : FCM does not guarantee the generation of these tokens. IsInitialized is This call is also deprecated FirebaseInstanceId. That said, have you tried sending a I want to retrieve my token and i'm doing exactly as many examples says On FirebaseMessagingService i have this @Override public void onNewToken(String token) { onNewToken @ WorkerThread fun onNewToken (token: String): Unit Called when a new token for the default Firebase project is generated. wkaez, af39qf3, qovsnn, x5u, jefn, myt, x6b, 7hop, w4n6, cdq6, 6xutghe, 7gt, aeszuwv, xj6vvb, piqww, wi, qktx3, n9mq6r, jz0l, qp8lt, hbed1xj, kvhm, pyzlh, css, sfb5s, jrohqx, qrd1c, kw7e, abbi, nscb, \