capacitor-community / fcm

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

fix(ios): get token using instanceID #48

Closed jamesmah closed 3 years ago

jamesmah commented 4 years ago

getToken returns an empty string right after deleteInstance. This fix updates the getToken method to match the android version, where it will wait for a valid instance & token before returning.

stewones commented 3 years ago

Thanks @jamesmah it's shipped in 1.0.8