I am using to send notifications to my app, when my app is installed I get the fcmtoken with this line
Messaging.messaging().fcmToken
Now, I want to delete the fcmToken whe user log out but I don't understand this:
Messaging.messaging().deleteFCMToken(forSenderID: String, completion: MessagingDeleteFCMTokenCompletion)
I don't understand, What do I have to do? thanks in advance