iOS support for Google Cloud Messaging

52,496

Solution 1

YES

I tried it and it works great. Follow this https://developers.google.com/cloud-messaging/ios/start

This is how it works.

You create app entry at google console. Upload development and production certificated in creation wizard.(You have to upload both) and follow the steps in docs.

Logic works as follows

  1. We request device token from apns as usual.
  2. Then we send that token to gcm service with provided api.
  3. Then gcm sends back a another token.
  4. We send that token to app server.
  5. App server can send notifications using that token.

Cool Features.

GCM for iOS has some cool features as

  • Subscribe to notification based on a particular topic. Ignore others.

  • Send Notification to other devices within the app.

If you want to try google sample app. UPDATE: it's Google with a capital G now. Just

pod try Google

There you will get an example in ObjC , swift and even mac app that can send notification.

Update.

Google is moving to Firebase cloud messageing from GCM.

Solution 2

Google has now introduced Google Cloud Platform for iOS. See their blog entry for more information. Google Cloud Messaging is supported now for both Android and iOS.

Solution 3

Google has updated their online documentation. You still need a valid APNS certificate. After, your app can register with GCM using the iOS GCM API. Your notifications server should work without modification.

Solution 4

the answer is yes, you can use Google Cloud Messaging API to communicate with iOS devices, but its quite a complex process. You can read the official documentation on https://cloud.google.com/resources/articles/ios-push-notifications

Regards

Solution 5

As of Google I/O 2015, Google officially added iOS support for GCM. You can find more information here: https://developers.google.com/cloud-messaging/ios/start

Share:
52,496
Admin
Author by

Admin

Updated on September 28, 2021

Comments

  • Admin
    Admin over 2 years

    I saw in google's developer console that GCM allows to generate a API key for iOS. I searched in the web for any kind of documentation about how to implement Push Notifications through GCM in an iOS App, but i didn't find answers.

    Is it really possible to implement Push Notifications jet using GCM in iOS apps? documentation, examples or something to learn how to do this?