gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 20:21:22 25 4
gpt4 key购买 nike

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

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com