K.Honda
K.Honda

Reputation: 3106

Push Notifications on iPhone App

I have successfully implemented push notifications to my app. The next step is, if the user receives a notification about this certain document, he/ she clicks it and it brings them to this document.

At the moment, I can receive the notification, but it only brings me to the app.

How can I do this?

Thanks.

Upvotes: 0

Views: 371

Answers (1)

KingofBliss
KingofBliss

Reputation: 15115

I am not clear with your question. But you should handle push notifications in the following methods,

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
//Handle here
}

and

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{    
 NSDictionary *tmpDic = [launchOptions objectForKey:@"UIApplicationLaunchOptionsRemoteNotificationKey"];
if (tmpDic != nil) {
        //Handle here also
    }
}

Upvotes: 1

Related Questions