This commit is contained in:
Yao
2025-01-11 15:54:19 +08:00
parent 1095c32599
commit 36ca0e65b5
8 changed files with 63 additions and 28 deletions

View File

@@ -21,6 +21,7 @@
#import "MainOldViewController.h"
#import "LaunchViewController.h"
#import "NotiCenterViewController.h"
@interface AppDelegate () <FIRMessagingDelegate,UNUserNotificationCenterDelegate>
@@ -223,6 +224,11 @@
NSString *jumpUrl = [messageNotiDic objectForKey:@"jumpUrl"];
NSInteger pushId = [[messageNotiDic objectForKey:@"pushId"] longValue];
NotiCenterViewController *notiCenterViewController = [[NotiCenterViewController alloc] initWithNibName:@"NotiCenterViewController" bundle:nil];
notiCenterViewController.modalPresentationStyle = UIModalPresentationFullScreen;
notiCenterViewController.pushId = pushId;
[self.window.rootViewController presentViewController:notiCenterViewController animated:NO completion:nil];
// pushId
if (pushId > 0) {
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:PushStatisticsURL]];
@@ -238,6 +244,7 @@
}];
[dataTask resume];
}
/*
if (type == 2 && !ISNULLSTR(image)) {
dispatch_async(dispatch_get_main_queue(), ^{
NSURL *url = [NSURL URLWithString:image];
@@ -266,6 +273,7 @@
[self.window.rootViewController presentViewController:view animated:YES completion:^{}];
});
}
*/
}
}
}