capacitor-community / fcm

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

Android works fine but iOS doesn't #74

Closed ncolella closed 3 years ago

ncolella commented 3 years ago

I follow every step in readme, Android works fine. IOS receives token with


 PushNotifications.addListener('registration', (token) => {
                console.log('FB token', token.value);
            });

But this method is not triggered

PushNotifications.addListener('pushNotificationReceived', (notification) => { console.log('FB message', notification.body); // alert('FB message: ' + message.body); this.doLocalNotif(notification); });

Any ideas? Any missing configuration?

stewones commented 3 years ago

Use v1.1.0

Current version is broken

ncolella commented 3 years ago

Use v1.1.0

Current version is broken

Hello, thank you for your answer. I tried to install "@capacitor-community/fcm": "^1.1.0", but Android doesn't work now. Should I change some configuration?

stewones commented 3 years ago

@ncolella just released v1.1.2 with a fix for a bug introduced in 1.1.1 can you try again? Thank you

magiclockers commented 3 years ago

using v1.1.2, Android yes, but IOS not working😭, using capacitor v3

stewones commented 3 years ago

@magiclockers v2 with support for cap3 has been released