如何在两种模式下处理推送通知?

时间:2016-02-25 04:57:16

标签: ios objective-c push-notification

在我的应用程序中有两种模式

1. Driver Mode
2. Passenger Mode

2)乘客可以向司机发送请求

-Driver has two option 1)Accept 2)cancel

if driver accepts invitation then passenger screen shows driver contact list.

if driver cancels invitation then passenger shows Find New Driver Screen.

1 个答案:

答案 0 :(得分:2)

当用户触摸您的响应将在此处收到的通知时,此方法将放在AppDelegate.m文件中。

  -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
    {
         NSLog(@"this is user info%@",userInfo);
         //here you can handle those things. 
    }