我是靠谱客的博主 深情自行车,这篇文章主要介绍iOS 极光推送接收自定义消息,现在分享给大家,希望可以做个参考。


//添加监听者

    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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(145)

评论列表共有 0 条评论

立即
投稿
返回
顶部