iOS 通知处理,当应用未激活时
来源:互联网 发布:无法打开淘宝三级页面 编辑:程序博客网 时间:2024/06/16 16:34
如果当前app处于活动状态,走didReceiveRemoteNotification方法处理;如果是从通知中心进来,在
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法里面处理
if (launchOptions):
{NSDictionary *localNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
// NSDictionary * dict1 = [localNotif valueForKey:@"aps"];
//do something what u want.
// [[[UIAlertView alloc] initWithTitle:[dict valueForKey:@"title"]
// message:[dict valueForKey:@"alert"]
// delegate:nil cancelButtonTitle:@"OK"
// otherButtonTitles:nil, nil] show];
BetaTownMessage *message = [[BetaTownMessage alloc] init];
[message setPushTitle:[localNotif objectForKey:@"title"]];
[message setPushContent:[localNotif objectForKey:@"content"]];
BetaTownMessageInfoViewController *messageInfoviewController = [[BetaTownMessageInfoViewController alloc] init];
messageInfoviewController.message = message;
[self.navigationController pushViewController:messageInfoviewController animated:YES];
}
0 0
- iOS 通知处理,当应用未激活时
- iOS如何对本地通知进行处理(当没有打开APP时怎么处理收到的通知)
- iOS 激活APP时通知APP开始获取用户位置
- Win10开发:Toast通知之应用激活
- 当C++遇到IOS应用开发---字符串处理
- 处理iOS键盘通知
- ios的通知应用
- 根据推送type不同,做不同的处理(应用未开启时点击推送通知,跳入不同界面逻辑)
- 151224 iOS 推送通知处理
- 当XML用selectSingleNode查找节点时,出现“未指定错误”时的处理
- iOS应用在前台时弹出本地通知
- iOS当发生内存警告时的一些处理
- ios当tableView整体上移时的处理
- 花生壳已经激活了,但是在诊断显示“花生壳未激活,设置A记录”如何处理
- iOS开发--当Block、代理、通知遇到女朋友
- iOS 通知的使用,以及场景(未确定版本)
- iOS: 本地通知(UILocalNotification )的应用
- App右上角通知应用:iOS 8 用法
- spring框架 错误:Cannot find the declaration of element 'beans'.
- 正则表达式获取字符串中的img标签中的url链接
- 获取目录信息opendir/readdir/closedir
- 每日一练--直接插入排序
- 4K视频格式转换
- iOS 通知处理,当应用未激活时
- 春节过后,跟经理说要辞职
- 日志库EasyLogging++学习系列(6)—— 日志记录器
- Android中的dispatchTouchEvent()、onInterceptTouchEvent()和onTouchEvent()
- 共享内存
- Gradle Plugin User Guide
- IE8 CSS hack
- iOS开发--抛物线动画
- MFC设置对话框大小