更换阿里推送,消息页面,以及部分bug修复

This commit is contained in:
wbzhan
2019-06-15 17:44:25 +08:00
parent 1ff1ff84b1
commit 5a10dfa182
13 changed files with 97 additions and 98 deletions
@@ -98,6 +98,7 @@ Assign NSInteger messageCount;//消息个数
[self initUI];
[self showProgress];
[self addDataRequestQueue];
[self checkNotification];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deleteCurDevice) name:@"DeleteCurDevice" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDevice) name:@"updateDevice" object:nil];
}
@@ -134,7 +135,17 @@ Assign NSInteger messageCount;//消息个数
self.progressHud.labelText = @"加载中...";
}
//app通过点击通知打开app,此处校验通知内容,做出相应的跳转
-(void)checkNotification{
//通过点击通知打开app,直接跳转到消息列表页面
if ([AppDelegate sharedDefault].remoteNotification) {
IfishMessageViewController *message = [[IfishMessageViewController alloc]init];
UIViewController *vc= (UINavigationController *)[CommonUtils appRootViewController];
vc.hidesBottomBarWhenPushed = YES;
[vc.navigationController pushViewController:message animated:YES];
vc.hidesBottomBarWhenPushed = NO;
}
}
//获取未读消息个数
-(void)getMessageCount{
@@ -1591,6 +1602,8 @@ Assign NSInteger messageCount;//消息个数
#pragma mark - 导航栏消息,跳转进入消息列表
-(void)navMeaasageBtnAction{
self.messageCount = 0;
[self setRedViewData];//刷新消息显示
// UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:sessionList];
// [nav.navigationBar resetBackgroundImage];
// nav.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
@@ -1599,6 +1612,7 @@ Assign NSInteger messageCount;//消息个数
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:message animated:YES];
self.hidesBottomBarWhenPushed = NO;
}
@end