add 友盟统计
This commit is contained in:
+1
-16
@@ -28,14 +28,10 @@
|
||||
//[NSThread sleepForTimeInterval:1];//延迟启动
|
||||
|
||||
_isMasking = NO;
|
||||
|
||||
[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
|
||||
[self registLocalNotification];
|
||||
|
||||
[self configThridPartyWithOptions:launchOptions];
|
||||
|
||||
[self configEnvironment];
|
||||
|
||||
[self setupRootVC];
|
||||
//广告页
|
||||
[self creatAdView];
|
||||
@@ -44,23 +40,16 @@
|
||||
}
|
||||
|
||||
- (void)applicationWillResignActive:(UIApplication *)application {
|
||||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
||||
|
||||
}
|
||||
|
||||
|
||||
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
||||
|
||||
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
|
||||
|
||||
// 当 开启面膜时间 长期保持后台模式
|
||||
// 当 开启面膜时间 app长期保持后台模式
|
||||
if (_isMasking) {
|
||||
[self creatBackGoundTask];
|
||||
}
|
||||
//[self creatBackGoundTask];
|
||||
|
||||
}
|
||||
|
||||
@@ -93,8 +82,6 @@
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
||||
application.applicationIconBadgeNumber = 0;
|
||||
[JPUSHService resetBadge];
|
||||
|
||||
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
|
||||
}
|
||||
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
||||
@@ -105,7 +92,6 @@
|
||||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||
|
||||
//app 挂起 面膜时间未结束 将发送本地通知提醒
|
||||
|
||||
if (_isMasking) {
|
||||
|
||||
// [[GiGaLocalNotificationManager localNotifiationCenter] sendLocalNotification:@"闹钟提醒!" fireTimeInterval:2 alertAction:@"面膜时间已添加闹钟提醒!" withIdentifier:kLOCALNotifiID_APPTERMINAL];
|
||||
@@ -117,7 +103,6 @@
|
||||
{
|
||||
if (event.type == UIEventTypeRemoteControl ) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user