Push Notifications using GCM

Can I use GCM from Corona SDK in iOS?

I configured my own server and GCM API with Apple certificates, but was not able to send messages.

When I try I receive this error:

“error”: “InvalidRegistration”

The registration token is the one returned from notification event in my client App.

Is it correct or do I need a token generated from google?

Thanks for help.

GCM = Google Could Messaging. It is used for Android devices.

Apple uses Apple Push Notification (APN).

I don’t understand why you need google for Apple.

I’ve no need to use Google for Apple, but I’m curious and I wanted try.

Google supports also Apple APN. Reading Google GCM specifications I could send push notifications to iOS devices, too.

I was trying to use only one provider for both platforms but I think I need to write a native custom plugin to register Apple devices under GCM. 

I agreee with angelo,

since GCM provice push notification for IOS in this link https://developers.google.com/cloud-messaging/ios/client

and i think it will helpful that we have push notification for android and IOS in the same server,

also to send push notification with GCM we can do it by a HTTP request API, much easier to communicate between server :slight_smile:

but i have tried to integrate the native with google library, and i failed,

i’ve tried that for 3days to use the GCM library with XCode and corona enterprise,

many problems/errors occur,

but when i try the example from google, it works fine,

maybe corona can help us to integrate the native GCM with corona enterprise

thanks :slight_smile:

You can put in a feature request at http://feedback.coronalabs.com.

Rob

GCM = Google Could Messaging. It is used for Android devices.

Apple uses Apple Push Notification (APN).

I don’t understand why you need google for Apple.

I’ve no need to use Google for Apple, but I’m curious and I wanted try.

Google supports also Apple APN. Reading Google GCM specifications I could send push notifications to iOS devices, too.

I was trying to use only one provider for both platforms but I think I need to write a native custom plugin to register Apple devices under GCM. 

I agreee with angelo,

since GCM provice push notification for IOS in this link https://developers.google.com/cloud-messaging/ios/client

and i think it will helpful that we have push notification for android and IOS in the same server,

also to send push notification with GCM we can do it by a HTTP request API, much easier to communicate between server :slight_smile:

but i have tried to integrate the native with google library, and i failed,

i’ve tried that for 3days to use the GCM library with XCode and corona enterprise,

many problems/errors occur,

but when i try the example from google, it works fine,

maybe corona can help us to integrate the native GCM with corona enterprise

thanks :slight_smile:

You can put in a feature request at http://feedback.coronalabs.com.

Rob