• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >ios > 研讨会通知收到通知后点击通知会执行哪个方法?

研讨会通知收到通知后点击通知会执行哪个方法?

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-05

佚名通过本文主要向大家介绍了研讨会通知,学术研讨会通知,关于召开研讨会的通知,研讨会会议通知,研讨会通知范文等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:研讨会通知 收到通知后点击通知会执行哪个方法?
描述:

  • (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

为什么不执行该方法?


解决方案1:

iOS7-

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userinfo

iOS7+

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler

本地通知

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification

.h文件说明函数注释


// This callback will be made upon calling -[UIApplication registerUserNotificationSettings:]. The settings the user has granted to the application will be passed in as the second argument. - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings NS_AVAILABLE_IOS(8_0); - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken NS_AVAILABLE_IOS(3_0); - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error NS_AVAILABLE_IOS(3_0); - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo NS_AVAILABLE_IOS(3_0); - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification NS_AVAILABLE_IOS(4_0); // Called when your app has been activated by the user selecting an action from a local notification. // A nil action identifier indicates the default action. // You should call the completion handler as soon as you've finished handling the action. - (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification completionHandler:(void(^)())completionHandler NS_AVAILABLE_IOS(8_0); // Called when your app has been activated by the user selecting an action from a remote notification. // A nil action identifier indicates the default action. // You should call the completion handler as soon as you've finished handling the action. - (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void(^)())completionHandler NS_AVAILABLE_IOS(8_0); /*! This delegate method offers an opportunity for applications with the "remote-notification" background mode to fetch appropriate new data in response to an incoming remote notification. You should call the fetchCompletionHandler as soon as you're finished performing that operation, so the system can accurately estimate its power and data cost. This method will be invoked even if the application was launched or resumed because of the remote notification. The respective delegate methods will be invoked first. Note that this behavior is in contrast to application:didReceiveRemoteNotification:, which is not called in those cases, and which will not be invoked if this method is implemented. !*/ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler NS_AVAILABLE_IOS(7_0);


分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 研讨会通知收到通知后点击通知会执行哪个方法?

相关文章

  • 2017-06-05 ios求助~求助~相机拍照的照片怎么保存到自己创建的相册里?
  • 2017-06-05 无法删除文件无法读源文件或磁盘手机qq打开网页无法使用文件上传功能?
  • 2017-06-05 闪动问题——iOS——UICollectionItem
  • 2017-06-05 求解决一个BUG关于第一响应者
  • 2017-06-05 replaykit录屏经常是黑屏录下来的
  • 2017-06-05 微信刷卡支付如果APP端没有收到服务器端的响应怎么处理?
  • 2017-06-05 重庆自考管理系统web请问ios中,web照相图片的自动旋转是什么原因
  • 2017-06-05 异步编程分类异步编程线性化操作
  • 2017-06-05 堆和栈的区别iOS堆与栈的问题
  • 2017-06-05 iphone5手机,微信中无法打开优酷链接?

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • OC中MRC下的NSString是由系统自动进行内存管理的?不需要手动操作?
    • 使用高德地图定位时,发现WIFI的时候可以显示正确位置,而在使用3G网络的时候定位出现了偏差
    • ios开发中json数据解析模型属性description冲突问题。
    • commond+B后,'#import<openssl/asn1h>'filenotfound;
    • UIActivityViewController分享
    • ios是什么意思iOS中"持有"是什么意思?
    • 苹果ios系统ios系统iframe内容的滚动事件不触发
    • js获取圆坐标iOSUITextView获取某一行的文本
    • 假作真时真亦假iOS获取IDFA,假作广告页面问题
    • ios被植入病毒iOS打包问题,求大神指教,被这问题卡住了!

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有