capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
238 stars 83 forks source link

Type 'NSNotification.Name?' has no member 'capacitorDidRegisterForRemoteNotifications' (ios) #152

Closed devexpert9 closed 8 months ago

devexpert9 commented 10 months ago

capacitorcommunityFcm plugin

plugin.swift

public override func load() { if (FirebaseApp.app() == nil) { FirebaseApp.configure(); } Messaging.messaging().delegate = self NotificationCenter.default.addObserver(self, selector: #selector(self.didRegisterWithToken(notification:)), name: .capacitorDidRegisterForRemoteNotifications, object: nil) }

this error is occurred during creating the iOS build Type 'NSNotification.Name?' has no member 'capacitorDidRegisterForRemoteNotifications'

Please help me out of this....

jcesarmobile commented 10 months ago

what's your capacitor version? latest version of the plugin requires capacitor 5

jcesarmobile commented 8 months ago

Closing as there was no response