|
@ -17,8 +17,8 @@
|
17
|
17
|
#import <dlfcn.h>
|
18
|
18
|
#import <objc/runtime.h>
|
19
|
19
|
|
20
|
|
#import <IpuCount/IpuCountReport.h>
|
21
|
|
#import <IpuCount/IpuCountConstant.h>
|
|
20
|
//#import <IpuCount/IpuCountReport.h>
|
|
21
|
//#import <IpuCount/IpuCountConstant.h>
|
22
|
22
|
|
23
|
23
|
@interface AppDelegate () <IpuURLRequestDelegate>
|
24
|
24
|
{
|
|
@ -36,8 +36,8 @@
|
36
|
36
|
|
37
|
37
|
// 验证代码迁移,提交至Git
|
38
|
38
|
|
39
|
|
//发送启动日志到服务端
|
40
|
|
[IpuCountReport reportAppStartWithRemark1:nil Remark2:nil];
|
|
39
|
// //发送启动日志到服务端
|
|
40
|
// [IpuCountReport reportAppStartWithRemark1:nil Remark2:nil];
|
41
|
41
|
|
42
|
42
|
/*资源在远程的场景*/
|
43
|
43
|
ViewController* rootCtrl = [[ViewController alloc] init];
|
|
@ -52,8 +52,18 @@
|
52
|
52
|
- (void)applicationWillResignActive:(UIApplication *)application{
|
53
|
53
|
[super applicationWillResignActive:application];
|
54
|
54
|
|
55
|
|
//发送操作日志到UDP服务器
|
56
|
|
[IpuCountReport reportOperWithType:OPERATE_EXIT remark1:nil remark2:nil];
|
|
55
|
// //发送操作日志到UDP服务器
|
|
56
|
// [IpuCountReport reportOperWithType:OPERATE_EXIT remark1:nil remark2:nil];
|
|
57
|
|
|
58
|
//极光推送角标设置为0
|
|
59
|
UILocalNotification *notification = [[UILocalNotification alloc] init];
|
|
60
|
notification.applicationIconBadgeNumber = -1;
|
|
61
|
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
|
|
62
|
[plugin resetBadge];
|
|
63
|
}
|
|
64
|
|
|
65
|
- (void)applicationWillEnterForeground:(UIApplication *)application{
|
|
66
|
[application cancelAllLocalNotifications];
|
57
|
67
|
}
|
58
|
68
|
|
59
|
69
|
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
|
|
@ -106,10 +116,4 @@
|
106
|
116
|
// [plugin showNotification:arr];
|
107
|
117
|
}
|
108
|
118
|
|
109
|
|
#pragma mark - app delegate
|
110
|
|
//- (void)applicationDidBecomeActive:(UIApplication *)application{
|
111
|
|
// [super applicationDidBecomeActive:application];
|
112
|
|
// [plugin resetBadge];
|
113
|
|
//}
|
114
|
|
|
115
|
119
|
@end
|