在我的应用程序中有两种模式
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.
最佳答案
当用户触摸您的响应将在此处收到的通知时,此方法位于AppDelegate.m文件中。
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
NSLog(@"this is user info%@",userInfo);
//here you can handle those things.
}
关于ios - 如何在两种模式下处理推送通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35618685/