3

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

KENdi
  • 7,576
  • 2
  • 16
  • 31
Dimoreno
  • 227
  • 3
  • 15
  • 1
    Possible duplicate of [Change/update Firebase notification token or instance id forcefully via code?](https://stackoverflow.com/questions/40315345/change-update-firebase-notification-token-or-instance-id-forcefully-via-code) – Rocky Apr 11 '19 at 05:03
  • but there, it uses InstanceID – Dimoreno Apr 11 '19 at 05:05
  • 1
    Above two links provided are for deprecated InstanceID. That's not what OP means. – Matthew So Dec 02 '20 at 17:16

0 Answers0