更换阿里推送,消息页面,以及部分bug修复
This commit is contained in:
+4
-20
@@ -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 @@
|
||||
// 如果是5,autoSizeScaleX=1,autoSizeScaleY=1;
|
||||
// 如果是6,autoSizeScaleX=1.171875,autoSizeScaleY=1.17429577;
|
||||
// 如果是6Plus,autoSizeScaleX=1.29375,autoSizeScaleY=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"]) {
|
||||
|
||||
Reference in New Issue
Block a user