Push notifications

Forum for posting sample code and examples, new posts creation is not allowed, but everybody can comment

Push notifications

Postby sunny » Fri Aug 28, 2009 7:06 pm

This example shows hot to register for Apple Remote Notification Service (APNS)
Server side is not provided in here, but there are a lot of tutorials on how to implement that in php on your server, for example here: http://www.macoscoders.com/2009/05/17/i ... vice-apns/
Attachments
PushTest.zip
(21.1 KiB) Downloaded 98 times
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Push notifications

Postby tarnfeld » Sun Aug 30, 2009 12:27 am

This is actually a useful thing, i might think of an idea that could re-volve around push notifications!
Nice little demo you have - although that link isn't very good... :(
tarnfeld
 
Posts: 189
Joined: Mon Jun 15, 2009 9:37 pm

Re: Push notifications

Postby ikitx » Thu Feb 11, 2010 8:09 am

I have tired this sample code with nimble 1.6.5 but it is not successful. After I added two framework mapkit and storekit, the source code compile success. However, it flow another execption now.

Error Log:
2010-02-11 13:24:19.222 PushTest[15156:20b] *** -[Nimble view]: unrecognized selector sent to instance 0x1119b80
2010-02-11 13:24:19.224 PushTest[15156:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[Nimble view]: unrecognized selector sent to instance 0x1119b80'

Please point me to a right way to fit it. Thanks.
ikitx
 
Posts: 23
Joined: Wed Jan 13, 2010 12:00 pm

Re: Push notifications

Postby sunny » Fri Feb 26, 2010 5:22 pm

updated project to be compatible with v1.6.1+
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Push notifications

Postby sunny » Mon Mar 01, 2010 5:23 pm

the bug with sending non url-encoded token is fixed
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Push notifications

Postby shift » Sun Mar 07, 2010 12:16 pm

Sorry if I sound stupid, but I just can't find the sample project. Can anyone point me into the right direction? Thanks!
shift
 
Posts: 27
Joined: Fri Oct 09, 2009 11:34 am

Re: Push notifications

Postby sunny » Sun Mar 07, 2010 12:22 pm

strange, it disappeared... I uploaded file again, in the very first comment
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Push notifications

Postby shift » Sun Mar 07, 2010 12:49 pm

Great, thanks a lot! :)
shift
 
Posts: 27
Joined: Fri Oct 09, 2009 11:34 am

Re: Push notifications

Postby ueilat » Mon Mar 15, 2010 1:21 am

Helpppppppppppppp!
I can register service
I can send from my server notifications
I receive all notifications (alert badge popup).
Now I don't know how to manage in JS.
Sunny no plan to make push notification a standard part of nimblekite?
or please help me in passing from xcode to JS the info for both didReceiveRemoteNotification and application:didFinishLaunchingWithOptions

And finally, how I can understand if already the user accepted the notifications?

Sorry but my xcode is very bad. I try rhe tecnuique copy&paste but without succecc
thanx in advance
User avatar
ueilat
NimbleKit Expert
 
Posts: 158
Joined: Fri Feb 12, 2010 2:31 am
Location: Torino, Italy

Re: Push notifications

Postby sunny » Mon Mar 15, 2010 5:57 am

compose sample project and comment exact places where you want the data to be passed to javascript and I'll add necessary code
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Next

Return to Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest