Open SemenPapazov opened 5 years ago
How about now? How do you solve that?
FirebaseInstanceIdService is deprecated which you need to update manually to make it work.
In .notifications.ChatFirebaseMessagingService
you need to copy the onTokenChange
from instanceid.service.SaveFirebaseInstanceIdService
. Then you can delete SaveFirebaseInstanceIdService.class.
change the onTokenChange()
to onNewToken()
.
Search for the classes: .core.ChatManager ; .core.authentication.ChatAuthentication; .core.authentication.task.RefreshFirebaseInstanceIdTask
Change String token = FirebaseInstanceId.getInstance().getToken();
to FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener(new OnSuccessListener<InstanceIdResult>() { @Override public void onSuccess(InstanceIdResult instanceIdResult) { String newToken = instanceIdResult.getToken(); Log.i(TAG_TOKEN, "RefreshFirebaseInstanceIdTask: token == " + newToken); } });
in AndroidManifest delete `service android:name=".instanceid.service.SaveFirebaseInstanceIdService">
</service>`
In my logs in firebase there are such a message "There are no notification tokens to send to".