This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Push Notifications


Push Notifications

Postby Namal » Apr 7, 2011 @ 10:26am

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 ?

Thanks,

Phil
MovingPlayer
User avatar
Namal
pm Member
 
Posts: 14
Joined: Oct 31, 2003 @ 4:09pm


Re: Push Notifications

Postby edge » Apr 29, 2011 @ 9:26am

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.

Wouter
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Re: Push Notifications

Postby edge » Apr 29, 2011 @ 9:55am

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.

Wouter
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron