-2

In my previous iPhone apps, I didn't use the Apple Push Notification function. In my current iPhone app I want to implement Apple Push Notification functionality. I referred the way to implement the APN service in iPhone app,

- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken {  
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error {  
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 

Can we test the APN service before submitting the app to App store? If it is possible please suggest your ideas to test the app?

Thanks in advance.

a2800276
  • 3,272
  • 22
  • 33
Gopinath
  • 5,392
  • 21
  • 64
  • 97
  • http://stackoverflow.com/questions/1052645/apple-pns-push-notification-services-sample-code review this will give you all answer about push notification – priyanka Apr 10 '12 at 09:51
  • 1
    The best sample code and answers to your other questions are all to be found on the Apple website. Why not check there first? – Nick Bull Apr 10 '12 at 09:51
  • Yes sure you can .. check this [site](http://urbanairship.com/) you can test your app without do any coding – Malek_Jundi Apr 10 '12 at 09:57

1 Answers1

2

In order to send push notifications to your users, it is up to you to store each user's device token in your own database. Then you can address a message to each user, send the message payload to Apple, and Apple will send the message to the user.

I would recommend using Easy APNS to accomplish this. It is easy to set up, easy to use, and powerful.

Jack Humphries
  • 13,056
  • 14
  • 84
  • 125