您的位置:首页 > 移动开发 > IOS开发

iOS 极光推送接收自定义消息

2017-02-16 14:10 399 查看
//添加监听者

    NSNotificationCenter *defaultCenter = [NSNotificationCenter
defaultCenter];

    [defaultCenter addObserver:self
selector:@selector(networkDidReceiveMessage:)

                          name:kJPFNetworkDidReceiveMessageNotification
object:nil];

//在APP打开的情况下,接收自定义的方法

- (void)networkDidReceiveMessage:(NSNotification *)notification {

   
//处理通知的方法

NSDictionary *userInfo = [notification
userInfo];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息