monster74
monster74
Small addition. The "messaging: didRefreshRegistrationToken:" event is not called.
"didReceiveRegistrationToken" is always called after application start. But if I previously updated the token, closed the application, then when the application starts, "didReceiveRegistrationToken" returns the old remote token to me.
What am I doing. 1) I delete the token (instanceID.DeleteToken) 2) I receive a new correct token (instanceID.GetToken) 3) I close the application. 4) I open the application 5) "didReceiveRegistrationToken"...
If instanceID.GetToken is called in "didReceiveRegistrationToken", then instanceID.GetToken will return the correct current token.
Am I deleting the token incorrectly?
` 24.12.2020 12:13 AutoGRAPHMobile Info iPhone-Anton mobile 0000:MonoTouch 1 Firebase DidReceiveRegistrationToken : fYaf_8i3ykh0oj2_hF88kJ:APA91bFRxwZhI91H9u_AetKTFQFQBp2SMmJRL3M3xeav6xcUSHfSAHOaUIna3derrw9mAWPhYBTiFFCJ0iQwy06ctnf3uSr86OiISkvfGkbMQprgh_SuNAxiMNV5Z6bo0_FQnR3BsXHa 24.12.2020 12:13 AutoGRAPHMobile Info iPhone-Anton mobile 0000:MonoTouch 1 Firebase RegisteredForRemoteNotifications : {length = 32, bytes = 0xacdf3bcd...
From the logs you can see that after the first update everything is fine. And after the second update, the old token began to return. > Other than that, couple...
> Another thing is IID token API is deprecated, to better work with messaging:didReceiveRegistrationToken, please use the getToken and deleteToken call from Messaging because the API you are using has...
You were right. I changed from "InstanceId" to "Messaging" and the problem disappeared. Here's the code: ` messaging.Delegate = null; messaging.DeleteFcmToken(_authorizedEntity, new MessagingDeleteFcmTokenCompletionHandler((errorDeleteToken) => { if (errorDeleteToken != null) {...
Thank you for your help. I checked everything. Switching to the "Messaging API" solved the problem. The old deleted token is no longer returned.