Page 1 of 1

Push Notifications

PostPosted: Apr 7, 2011 @ 10:26am
by Namal
Hi there,

Has anyone succeded in implementing Push Notification under Edge ?

What I tried was creating an invisible ViewController implementing the UIApplicationDelegate protocol (which I also use to get LowMem and Active messages, and those work) and calling registerForRemoteNotificationTypes.
My delegate will never get either Registration or Error message.

Any hints ?



Re: Push Notifications

PostPosted: Apr 29, 2011 @ 9:26am
by edge
Hey Phil,

Push notifications should be possible using EDGELIB. Rough Cookie implemented push notifications in their Star Defense game for sending challenges to friends. Not sure what technique was used there though.


Re: Push Notifications

PostPosted: Apr 29, 2011 @ 9:55am
by edge
My colleague looked into this matter a little more and responded:

To catch the push notification event messages, implement OnNativeEvent in your EDGELIB framework and check for the push notification messages defined in edgedevice.h (at the bottom, they begin with IM_).

Cast the param1 parameter to the message data you would expect.