更换阿里推送,消息页面,以及部分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
+4 -20
View File
@@ -186,9 +186,10 @@
NSLog(@"\n ====== launchOptions: %@",launchOptions);
NSDictionary *pushNotificationKey = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (pushNotificationKey) {
self.remoteNotification = pushNotificationKey;
// 这里定义自己的处理方式
// 如需要代码控制 BadgeNum (icon右上角的数字等操作)
// [UIApplication sharedApplication].applicationIconBadgeNumber = 10;
//[UIApplication sharedApplication].applicationIconBadgeNumber = 10;
}
}
/**
@@ -206,16 +207,6 @@
*/
// 获取推送消息 islaunchedByNotification 标识用户是否通过点击通知消息进入本应用 即userInfo
NSDictionary* remoteNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
NSLog(@"%@",remoteNotification);
if (remoteNotification) {
_islaunchedByNotification=YES;
launchedByNotification = YES;
}else{
_islaunchedByNotification=NO;
launchedByNotification = NO;
}
/**
* TalkingData 统计工具
@@ -270,7 +261,7 @@
// 如果是5autoSizeScaleX=1autoSizeScaleY=1
// 如果是6autoSizeScaleX=1.171875autoSizeScaleY=1.17429577
// 如果是6PlusautoSizeScaleX=1.29375autoSizeScaleY=1.2957
AppDelegate*laoutDelegate=(AppDelegate*)[[UIApplication sharedApplication]delegate];
AppDelegate*laoutDelegate=(AppDelegate*)[[UIApplication sharedApplication]delegate];
if (kScreenSize.height>480) {
laoutDelegate.autoSizeScaleX=kScreenSize.width/320;
laoutDelegate.autoSizeScaleY=kScreenSize.height/568;
@@ -290,14 +281,7 @@ if (kScreenSize.height>480) {
firstLogIn=NO;
[self loginAnimated:application];
//企业版打开
// dispatch_async(dispatch_get_main_queue(), ^{
// if (_islaunchedByNotification==NO) {
// [self testCurrenVersion];
// }
// });
}else{
if ([isExit isEqualToString:@"1"]) {