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];
}
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 开发之 -- 极光推送,发送自定义消息,进入制定页面
- 解决极光推送IOS接收到推送消息后无声音及震动问题
- 极光推送(接收后台消息和自定义消息)
- iOS极光推送之自定义消息
- ios极光推送的自定义消息和registerID的获取
- 极光推送能接收到自定义消息,但注册REGISTRATION_ID是null
- iOS集成极光推送 通知 和 自定义消息
- 极光推送企业开发系列之自定义消息
- 使用极光推送自定义消息打造个性的消息推送效果
- iOS极光推送 点击推送消息跳转页面
- iOS开发之极光推送自定义推送声音
- iOS自定义推送消息提示框
- Android 使用极光推送消息详细介绍之自定义消息
- Andriod之使用极光推送自定义消息打造个性的消息推送效果
- 极光推送接收不到消息
- 关于百度云、极光的推送的问题,为什么控制台发送消息成功,而手机端接收不到消息
- iOS-极光消息推送的快速实现
- iOS极光推送 点击推送消息跳转页面
- .net平台借助第三方推送服务在推送Android,IOS消息(极光推送_V2版本)