Arup Saha
Arup Saha

Reputation: 538

How to integrate Push Notification to an already existing app?

I already have an app in AppStore, now I need to integrate Push Notification to it in the next version. Do I need to generate new certificates for it or can modify the existing certificates used for code signing?

Upvotes: 0

Views: 101

Answers (2)

iDhaval
iDhaval

Reputation: 7844

If you would like to add push-notification in your application then you need enable push-notification, also need to generate certificate at Apple Developer portal and install it. (which will not affect on current live app).

Then add code to register push notification, (Also can use delegates as required)

 -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
      [[UIApplication sharedApplication]registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound);
}

And finally you need to upload new version of application.

Upvotes: 3

Edwin Vermeer
Edwin Vermeer

Reputation: 13127

you need to change the application certificate and therefore also the distribution certificate. An update of both is OK

Upvotes: 1

Related Questions