I can't seem to get GCM push notifications working. My problem is I don't know how to get a registration ID from GCM. I can get a token from APN just fine. But I'm not quite sure what to do next. I tried following the tutorial but its not really working for me. I'm a beginner so please be explicit.
What I'm asking is, after obtaining a token from APN, then what do I do?
Thanks in advance. https://developers.google.com/cloud-messaging/ios/client
The Registration Token is given to the registration handler from didRegisterForRemoteNotificationsWithDeviceToken
All code below is taken from the GCM Sample from Google.
First, declare a handler in your application:didFinishLaunchingWithOptions:
Call your handler in the application registration callback:
The GCM token to use is simply the "NSString *registrationToken" in the registration handler.