There is the s3eIOSNotifications extension that I've used for adding Notifications to the iOS version of my game. But now I've come to do the Android version I was disappointed to find that there is no equivelant of this extension. I would have thought that Android Notifications was a basic functionality that should be supported by Marmamalade (as there is support for the iOS Notifications).
Presuming that someone else must have come across the same problem of adding Notifications to their Android app, I searched the Marmalade forums and found the following post:
https://www.madewithmarmalade.com/devnet/forum/how-implement-push-notification-android-3
So I began to look down this path only to find that the C2DM is being deprecated, and now GCM (Google Cloud Messaging) is the one to use. So I have now just started to look down the route of using GCM for Android Push Notifications.
Has anyone else added Android Push Notifications using the GCM method, or any other method?












I am in the process of trying to get this working right now. Urban Airship and Marmalade announced that they would release an extension to support Urban Airship so if you want to wait for that it will be supported. If not I can let you know how it goes for me.
It would be good to hear how you get on with your own implementation. I'll let you know how I get on with mine. Thanks for the info on Urban Airship, I'll keep that in mind.
Google Cloud Messaging is the way to go with push notifications on Android now. Unfortunately we don't have an official implementation yet. There was a non-official C2DM implementation but C2DM is deprecated (in fact it's no longer possible to register an account for it at all) and we've been too busy to fit GCM integration into 6.1.
I'll take a look into when that's likely to happen. In the meantime, you could implement this as an EDK extension and we should be able to provide support.
As well as the GCM part, you would probably want to use Android's NotificationManager for notification bar alerts and AlarmManager for local notification timing.
I'll update this post once I have a firm release date for the Urban Airship integration (extension).
I am just finishing an EDK extension for local notifications on Android using the AlarmManger and NotificationManager based on code written by Greg Michael. I can probably use the same extension for the Push notifications or at least reuse the NotificationManager code :) Glad to hear that Marmalade is going to support GCM.
Would it be possible to modify the non-official C2DM implementation to use the new GCM system?
If so, may be Marmalade can modify this non-official C2DM implementation. And/or make this non-official C2DM implementation version available on https://github.com/marmalade/ as a starting point for others to convert from?
Apparently the migration from C2DM to GCM is quite simple:
http://developer.android.com/guide/google/gcm/c2dm.html
I don't see anything C2DM related at https://github.com/marmalade/ ?
No, I've not seen anything C2DM related on GitHub either. 'Nick S' had said earlier in this thread that 'There was a non-official C2DM implementation' so I'm wondering if they can put that on GitHub, or amend it themselves to use the new GCM method. As apparently the migration from C2DM to GCM is quite simple:
http://developer.android.com/guide/google/gcm/c2dm.html
So if 'Nick S' has a 'non-official C2DM implementation' would it be possible to convert from C2DM to GCM? Would be good if that is possible, rather than wait for the 'Urban Airship' extension.
Hi guys, by non-official I meant "not authored by Marmalade" so we don't have any code to hand over unfortunately. Apologies for the accidental tease there!
There have been Marmalade apps using push/C2DM but none that we have source access to.
@Josiah are you interested in open sourcing your Push Android notification extension when it is complete? It's on our most wanted extension list
http://www.madewithmarmalade.com/devnet/forum/open-source-modules-%E2%80%93-most-wanted
@Lester-Madden
I would be happy to share the extension. I am new to Android programming though so I don't know how great of an example it will be. I am also using Urban Airship so I was hoping that Marmalade was going to be release an extension Urban Airship soon so I would not have to write one :) The other problem is that Google just changed from C2DM to GCM and Urban Airship does not support GCM directly yet. I am still researching what the best solution is be but I will let you know what I figure out.
Hi,
Soon there will be an official announcement, but you can already use Pushwoosh SDK with Marmalade for free unlimited push notifications.
http://www.pushwoosh.com/programming-push-notification/marmalade-push-sdk-integration/