开发版本-developer——01 first commit
This commit is contained in:
+15
-15
@@ -42,7 +42,6 @@
|
||||
#import "TalkingData.h"
|
||||
#define TalkingDataAPPID @"351E6F7956CEF7FB6AABAEB64EF9BF18"
|
||||
#define BMKMAP_APPKEY @"wYcF3YXqeepKfzruExLPn0eS"
|
||||
//#import <BaiduMapAPI_Map/BMKMapComponent.h>
|
||||
#import "Socketsingleton.h"
|
||||
#import <UMCommunitySDK/UMCommunitySDK.h>
|
||||
#import <UMCommunitySDK/UMComSession.h>
|
||||
@@ -63,6 +62,7 @@
|
||||
//企业版
|
||||
#define JPUSH_APPKEY @"d970d5e193cb2a0bbe41653c"
|
||||
//摄像头部分
|
||||
//#import <GWP2P/GWP2P.h>
|
||||
#import "P2PClient.h"
|
||||
#import "MPNotificationView.h"
|
||||
#import "NetManager.h"
|
||||
@@ -335,7 +335,6 @@ if (kScreenSize.height>480) {
|
||||
self.dwApContactID = 0;
|
||||
[[UDPManager sharedDefault] ScanLanDevice];
|
||||
|
||||
//阿里百川 初始化SDK
|
||||
// 百川平台基础SDK初始化,加载并初始化各个业务能力插件
|
||||
[[AlibcTradeSDK sharedInstance] asyncInitWithSuccess:^{
|
||||
|
||||
@@ -417,8 +416,9 @@ if (kScreenSize.height>480) {
|
||||
[[Socketsingleton sharedInstance] cutOffSocket];//外部应用打断时断开soket 如电话 下拉系统通知栏 上拉系统通知栏短信查看等
|
||||
//摄像头后台模式不能截图
|
||||
self.isGoBack = YES;
|
||||
|
||||
// [GWNetSingleton sharedClient]
|
||||
[[P2PClient sharedClient] p2pHungUp];
|
||||
#warning p2p appdelegate
|
||||
//2.3 版本 点击home 键 就直接挂起 不让app 后台运行 设置Application does not run in background =YES
|
||||
|
||||
}
|
||||
@@ -434,18 +434,18 @@ if (kScreenSize.height>480) {
|
||||
|
||||
//设置为假象服务器断开
|
||||
|
||||
UIApplication *app = [UIApplication sharedApplication];
|
||||
UIBackgroundTaskIdentifier taskID = 0;
|
||||
taskID = [app beginBackgroundTaskWithExpirationHandler:^{
|
||||
[[P2PClient sharedClient] p2pDisconnect];
|
||||
[app endBackgroundTask:taskID];
|
||||
}];
|
||||
|
||||
if (taskID == UIBackgroundTaskInvalid) {
|
||||
[[P2PClient sharedClient] p2pDisconnect];
|
||||
NSLog(@"Failed to start background task!");
|
||||
return;
|
||||
}
|
||||
// UIApplication *app = [UIApplication sharedApplication];
|
||||
// UIBackgroundTaskIdentifier taskID = 0;
|
||||
// taskID = [app beginBackgroundTaskWithExpirationHandler:^{
|
||||
// [[P2PClient sharedClient] disconnect];
|
||||
// [app endBackgroundTask:taskID];
|
||||
// }];
|
||||
//
|
||||
// if (taskID == UIBackgroundTaskInvalid) {
|
||||
// [[P2PClient sharedClient] disconnect];
|
||||
// NSLog(@"Failed to start background task!");
|
||||
// return;
|
||||
// }
|
||||
|
||||
self.isGoBack = YES;
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
|
||||
Reference in New Issue
Block a user