diff --git a/ios/Plugin/Plugin/Plugin.swift b/ios/Plugin/Plugin/Plugin.swift index 1f47678..c0e0dd6 100644 --- a/ios/Plugin/Plugin/Plugin.swift +++ b/ios/Plugin/Plugin/Plugin.swift @@ -112,6 +112,8 @@ public class FCMPlugin: CAPPlugin, MessagingDelegate { print("Error deleting installation: \(error)") call.reject("Cant delete Firebase Instance ID", error.localizedDescription) } + // reset fcmToken + self.fcmToken = ""; call.resolve(); } }