I am trying to send notifications via the themes system on an iOS device with the new Google Cloud Messaging API developed for the iOS device.
I have the correct certificates, so I can receive notifications from the created topic. My code to subscribe to the topic:
if (_registrationToken && _connectedToGCM) { [[GCMPubSub sharedInstance] subscribeWithToken:_registrationToken topic:topicToSubscribe options:nil handler:^(NSError *error) { if (error) { //handle error here } else { self.subscribedToTopic = true; } }]; }
I know the equivalent function to unsubscribe, but this function requires a theme name. Is there a way to get all the topics on which my application may have subscribed to unregistered them before subscribing?
ios google-cloud-messaging
Meitneshi
source share