Ionic native Push IOS subscribe to topic


#1

Hi,

how is it possible to subscribe to a topic for remote push on iOS using ionic-native Push module?
I have simple push using DEVICE TOKEN working, certificates etc. all working fine.
But I want to subscribe the devices to topics and send a notification to all devices within a topic,
without manually keeping track of the device tokens.
This is working on Android (also with ionic-native Push).
Any samples on how to perform this? Maybe also how to send the push notification to the APNS service?

Thanks.


#2

What service are you using to send pushes?
What exactly do you mean by “Ionic native Push”?
How do you do it on Android?


#3

I use Ionic Native Push which is based on Cordova phonegap-plugin-push.
On Android I have exactly the same code (on mobile).
I send the messages through the Firebase Cloud Messaging Console and the APNS equivalent.


#4

Code in you app should be identical for Android and iOS.


#5

I am facing issue with IOS . <FIRMessaging/WARNING> Failed to subscribe to topic Error Domain=com.google.fcm Code=5 “(null)”