capacitor-community / fcm

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

Unrecognised member "token" #77

Closed jprinsloo closed 3 years ago

jprinsloo commented 3 years ago

After upgrading the fcm plugin to 2.0.0, Xcode fails to recognise the member token in the Plugin.swift file.

Value of type 'Messaging' has no member 'token' on line 62.

Screenshot 2021-06-15 at 10 45 58

I have followed the iOS setup procedure as stipulated in the docs. Any assistance would be appreciated.

stewones commented 3 years ago

check your Podfile.lock, we have upgrade firebase so it must show references of FirebaseMessaging 8

try to

jprinsloo commented 3 years ago

As a closing comment, I had to run pod update. Thanks for the assistance.