Reputation: 2682
I have an ionic app on capacitor both for android and ios. Everything works great on my testing environment using Firebase-Cloud-Messaging. I am able to send and receive segment notifications to both devices. The only concern I have is when I try to send a single device notification through FCM interface (send test message) to IOS. The device is not receiving it. I have tried many things already. And since it not working there in interface, it is also not working when i test it though CURL. On the other hand, android is working perfectly. Any suggestions?
Appreciate
Upvotes: 2
Views: 1911
Reputation: 836
I did a PR on the capacitor-fcm plugin to change that and if you use FCMPlugin.getToken() you will get on both android and iOs the fcm registration token in question. Also, you can send the test message for a specific topic that you only have this device registered.
Until a new release from capcaitor-fcm is launched, you can install from the PR itself.
https://github.com/stewwan/capacitor-fcm/pull/27
Upvotes: 1