//添加监听者
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter addObserver:self selector:@selector(networkDidReceiveMessage:)
name:kJPFNetworkDidReceiveMessageNotification object:nil];
//在APP打开的情况下,接收自定义的方法
- (void)networkDidReceiveMessage:(NSNotification *)notification {
//处理通知的方法
NSDictionary *userInfo = [notification userInfo];
}
最后
以上就是深情自行车最近收集整理的关于iOS 极光推送接收自定义消息的全部内容,更多相关iOS内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复