不走 didReceiveRemoteNotification
不走 didReceiveRemoteNotification 这个方法。 我中途换了一个 推送证书, 原来的证书是可以的。 能走这个方法, 现在不可以了。 现在的情况如下:
在后台发送消息, IOS客户端 会打印日志如下,
2015-12-01 17:42:44:422 EyeshieldAssistant[664:7a1f] RECV:{"from":"admin","to":"yb_today","bodies":[{"type":"txt","msg":"我是一个斌"}]}
2015-12-01 17:42:44:429 EyeshieldAssistant[664:f07] SEND:
2015-12-01 17:42:44:429 EyeshieldAssistant[664:4d23] begin insert message to chatter::admin, messageId::134854069150810588
2015-12-01 17:42:44:456 EyeshieldAssistant[664:4d23] end insert message with account::yb_today, to chatter::admin, messageId::134854069150810588, result::YES
在后台发送消息, IOS客户端 会打印日志如下,
2015-12-01 17:42:44:422 EyeshieldAssistant[664:7a1f] RECV:
2015-12-01 17:42:44:429 EyeshieldAssistant[664:f07] SEND:
2015-12-01 17:42:44:429 EyeshieldAssistant[664:4d23] begin insert message to chatter::admin, messageId::134854069150810588
2015-12-01 17:42:44:456 EyeshieldAssistant[664:4d23] end insert message with account::yb_today, to chatter::admin, messageId::134854069150810588, result::YES
没有找到相关结果
已邀请:
6 个回复
麦子
-(void)registerNotifications
{
[self unregisterNotifications];
[[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
[[EaseMob sharedInstance].callManager addDelegate:self delegateQueue:nil];
}
-(void)unregisterNotifications
{
[[EaseMob sharedInstance].chatManager removeDelegate:self];
[[EaseMob sharedInstance].callManager removeDelegate:self];
}
-(void)didReceiveMessage:(EMMessage *)message{
NSLog(@"%@",message);
}
[已注销]
麦子
[已注销]
youzg
[已注销]
if (launchOptions) {
NSDictionary*userInfo = [launchOptions objectForKey:@"UIApplicationLaunchOptionsRemoteNotificationKey"];
if(userInfo)
{
[self didReceiveRemoteNotification:userInfo];
}
}