瀏覽代碼

@liuql6 @添加自定义键盘插件

liuql6 3 年之前
父節點
當前提交
397730e654

+ 2 - 0
IPUCommon/IPUKeyboard.framework/Headers/IPUKeyboard.h

@ -7,6 +7,8 @@
7 7
8 8
@property (nonatomic, weak) id <IPUKeyboardEditDelegate> delegate;
9 9
10
@property (nonatomic, strong) NSString *text;
11
10 12
- (instancetype)initWithRandom:(BOOL)random
11 13
                       preview:(BOOL)preview
12 14
          hideWhenTouchOutside:(BOOL)hideWhenTouchOutside;

二進制
IPUCommon/IPUKeyboard.framework/IPUKeyboard


二進制
IPUCommon/IPUKeyboard.framework/Info.plist


+ 1 - 1
IPUCommon/IPUMobileFunc.framework/Headers/IPUMobileFunc.h

@ -57,4 +57,4 @@ FOUNDATION_EXPORT const unsigned char IPUMobileFuncVersionString[];
57 57
#import <IPUMobileFunc/IPUBMapPlugin.h>
58 58
59 59
#import <IPUMobileFunc/IPUSysLocationPlugin.h>
60
//#import <IPUMobileFunc/IPUNotificationPlugin.h>
60
#import <IPUMobileFunc/IPUNotificationPlugin.h>

+ 25 - 0
IPUCommon/IPUMobileFunc.framework/Headers/IPUNotificationPlugin.h

@ -0,0 +1,25 @@
1
//
2
//     ***   * * * *  *     *
3
//     *    *     *  *     *
4
//    *    * * * *  *     *
5
//   *    *        *     *
6
// ***   *        * * * *
7
//
8
//  IPUNotificationPlugin.h
9
//  IPUMobileFunc
10
//  Created by Benny (AsiaInfo PRD IPU) on 2021/11/10 14:27.
11
//  Copyright © 2021 Asiainfo. All rights reserved.
12
//
13
        
14
15
#import <IPUMobile/IPUMobile.h>
16
17
NS_ASSUME_NONNULL_BEGIN
18
19
@interface IPUNotificationPlugin : IPUPlugin
20
21
- (void)showNotification:(NSArray *)params;
22
23
@end
24
25
NS_ASSUME_NONNULL_END

二進制
IPUCommon/IPUMobileFunc.framework/IPUMobileFunc


IPUCommon/IPUMobileFunc.framework/Headers/IPUSystemPermissionPlugin.h → IPUCommon/IPUMobileFunc.framework/PrivateHeaders/IPUSystemPermissionPlugin.h


+ 2 - 2
IPUMobileFunc/IPUMobileFunc.xcodeproj/project.pbxproj

@ -74,7 +74,7 @@
74 74
		B28E56C321F1BBA800422D15 /* IPUStoragePlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B28E56C121F1BBA800422D15 /* IPUStoragePlugin.m */; };
75 75
		B28E56C621F1BCCA00422D15 /* IPUMobileUIPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = B28E56C421F1BCCA00422D15 /* IPUMobileUIPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
76 76
		B28E56C721F1BCCA00422D15 /* IPUMobileUIPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B28E56C521F1BCCA00422D15 /* IPUMobileUIPlugin.m */; };
77
		B28E56D221F1C39700422D15 /* IPUSystemPermissionPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = B28E56D021F1C39700422D15 /* IPUSystemPermissionPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
77
		B28E56D221F1C39700422D15 /* IPUSystemPermissionPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = B28E56D021F1C39700422D15 /* IPUSystemPermissionPlugin.h */; settings = {ATTRIBUTES = (Private, ); }; };
78 78
		B28E56D321F1C39700422D15 /* IPUSystemPermissionPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B28E56D121F1C39700422D15 /* IPUSystemPermissionPlugin.m */; };
79 79
		B28E56D621F1C3D100422D15 /* IPUAuthenticationPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = B28E56D421F1C3D100422D15 /* IPUAuthenticationPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
80 80
		B28E56D721F1C3D100422D15 /* IPUAuthenticationPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B28E56D521F1C3D100422D15 /* IPUAuthenticationPlugin.m */; };
@ -115,7 +115,7 @@
115 115
		B2EB105923A788C500EBB34D /* IPUMobile.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2EB105523A788C500EBB34D /* IPUMobile.framework */; };
116 116
		B2EE784822D2D25A00E2C466 /* IPUStorageUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = B2EE784622D2D25A00E2C466 /* IPUStorageUtil.h */; settings = {ATTRIBUTES = (Public, ); }; };
117 117
		B2EE784922D2D25A00E2C466 /* IPUStorageUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = B2EE784722D2D25A00E2C466 /* IPUStorageUtil.m */; };
118
		B2FB3BFB273B9DD200A522E0 /* IPUNotificationPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = B2FB3BF9273B9DD200A522E0 /* IPUNotificationPlugin.h */; };
118
		B2FB3BFB273B9DD200A522E0 /* IPUNotificationPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = B2FB3BF9273B9DD200A522E0 /* IPUNotificationPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
119 119
		B2FB3BFC273B9DD200A522E0 /* IPUNotificationPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B2FB3BFA273B9DD200A522E0 /* IPUNotificationPlugin.m */; };
120 120
/* End PBXBuildFile section */
121 121

+ 5 - 1
IPUMobileFunc/IPUMobileFunc/IPUBasicPlugin.h

@ -99,6 +99,10 @@
99 99
/*
100 100
 设置状态栏颜色
101 101
 */
102
-(void)resetStatusBarColor:(NSArray *)param;
102
- (void)resetStatusBarColor:(NSArray *)param;
103
104
/// 检查是否安装了某App
105
/// @param params 应用scheme,比如["ipushow://text"]
106
- (void)detectApps:(NSArray *)params;
103 107
104 108
@end

+ 28 - 20
IPUMobileFunc/IPUMobileFunc/IPUBasicPlugin.m

@ -147,32 +147,26 @@
147 147
    [self callback:terminalType];
148 148
}
149 149
150
151 150
- (void)isNotificationBlocked:(NSArray *)params {
152
    __block BOOL isOpen = NO;
153 151
    if (@available(iOS 10.0, *)) {
154 152
        dispatch_semaphore_t signal = dispatch_semaphore_create(0);
155 153
        [[UNUserNotificationCenter currentNotificationCenter] getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings *settings) {
156
            isOpen = (settings.authorizationStatus == UNAuthorizationStatusAuthorized);
157
            dispatch_semaphore_signal(signal);
154
            BOOL isOpen = (settings.authorizationStatus == UNAuthorizationStatusAuthorized);
155
            if (isOpen) {
156
                [self callback:@"true"];
157
            }else {
158
                [self callback:@"false"];
159
            }
158 160
        }];
159
        dispatch_semaphore_wait(signal, DISPATCH_TIME_FOREVER);
160
    } else {
161
        // Fallback on earlier versions
162
        if (@available(iOS 8.0, *)) {
163
            [[UIApplication sharedApplication] isRegisteredForRemoteNotifications];
164
            UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
165
            if (UIUserNotificationTypeNone != setting.types)
166
                isOpen = YES;
167
            
168
        }else {
169
            UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
170
            isOpen = (type != UIRemoteNotificationTypeNone);
171
        }
161
        
162
        return;
172 163
    }
173
    if (isOpen) {
164
    
165
    [[UIApplication sharedApplication] isRegisteredForRemoteNotifications];
166
    UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
167
    if (UIUserNotificationTypeNone != setting.types) {
174 168
        [self callback:@"true"];
175
    }else {
169
    } else {
176 170
        [self callback:@"false"];
177 171
    }
178 172
}
@ -180,7 +174,7 @@
180 174
/*
181 175
 设置状态栏颜色
182 176
 */
183
-(void)resetStatusBarColor:(NSArray *)param{
177
- (void)resetStatusBarColor:(NSArray *)param {
184 178
    IPUViewController *vc = (IPUViewController *)[self getViewController];
185 179
    NSString *colorStr = nil;
186 180
    if (param && param.count>0 && param[0]!=[NSNull null]) {
@ -190,4 +184,18 @@
190 184
    [vc setStatusBarColor:color];
191 185
}
192 186
187
- (void)detectApps:(NSArray *)params {
188
    if (!params || !params.count) {
189
        [self error:@"参数缺失"];
190
        return;
191
    }
192
    
193
    if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:params[0]]]) {
194
        [self callback:@"0"];
195
        return;
196
    }
197
    
198
    [self callback:@"1"];
199
}
200
193 201
@end

+ 1 - 1
IPUMobileFunc/IPUMobileFunc/IPUMobileFunc.h

@ -57,4 +57,4 @@ FOUNDATION_EXPORT const unsigned char IPUMobileFuncVersionString[];
57 57
#import <IPUMobileFunc/IPUBMapPlugin.h>
58 58
59 59
#import <IPUMobileFunc/IPUSysLocationPlugin.h>
60
//#import <IPUMobileFunc/IPUNotificationPlugin.h>
60
#import <IPUMobileFunc/IPUNotificationPlugin.h>

+ 2 - 0
IPUMobileFunc/IPUMobileFunc/IPUNotificationPlugin.h

@ -18,6 +18,8 @@ NS_ASSUME_NONNULL_BEGIN
18 18
19 19
@interface IPUNotificationPlugin : IPUPlugin
20 20
21
- (void)showNotification:(NSArray *)params;
22
21 23
@end
22 24
23 25
NS_ASSUME_NONNULL_END

+ 0 - 24
IPUMobileFunc/IPUMobileFunc/IPUUploadDownloadPlugin.h

@ -34,14 +34,6 @@
34 34
 */
35 35
- (void)uploadFileByAFN:(NSArray *)param;
36 36
37
/*****
38
 * 文件下载(基于AFNetworking)
39
 * param(param)  : 参数列表
40
 *
41
 * 对应JS接口: Mobile.downloadFile:function(savePath,servletUrl,callback,err)
42
 */
43
- (void)downloadFileByAFN:(NSArray *)param;
44
45 37
/**
46 38
 文件下载
47 39
@ -49,20 +41,4 @@
49 41
 */
50 42
- (void)downloadFile:(NSArray *)param;
51 43
52
/**
53
 * 文件上传(基于Unirest)
54
 * param(param) 参数列表
55
 *
56
 * 对应JS接口: Mobile.uploadWithServlet:function(filePath,dataAction,param,callback,err)
57
 */
58
- (void)uploadWithServletByUnirest:(NSArray *)param;
59
60
/*****
61
 * 文件下载(基于Unirest)
62
 * param(param) 参数列表
63
 *
64
 * 对应JS接口: Mobile.downloadWithServlet:function(savePath,dataAction,param,callback,err)
65
 */
66
- (void)downloadWithServletByUnirest:(NSArray *)param;
67
68 44
@end

+ 2 - 1
display-center/Res/config/mobile-action.xml

@ -5,7 +5,8 @@
5 5
    <action name="beep"  class="IPUBasicPlugin" method="beep"/>
6 6
    <action name="shock" class="IPUBasicPlugin" method="shock"/>
7 7
    <action name="email" class="IPUBasicPlugin" method="email"/>
8
    
8
9
    <action name="detectApps"    class=@"IPUBasicPlugin" method="detectApps"/>
9 10
    <action name="getNetInfo"    class="IPUBasicPlugin" method="getNetInfo"/>
10 11
    <action name="getSysInfo"    class="IPUBasicPlugin" method="getSysInfo"/>
11 12
    <action name="deviceVersion" class="IPUBasicPlugin" method="deviceVersion"/>

+ 6 - 0
display-center/display-center.xcodeproj/project.pbxproj

@ -122,6 +122,7 @@
122 122
		B2EB109023A7899800EBB34D /* IPUVideoResouce.bundle in Resources */ = {isa = PBXBuildFile; fileRef = B2EB108823A7899800EBB34D /* IPUVideoResouce.bundle */; };
123 123
		B2EB109123A7899800EBB34D /* IPUMobileResource.bundle in Resources */ = {isa = PBXBuildFile; fileRef = B2EB108923A7899800EBB34D /* IPUMobileResource.bundle */; };
124 124
		B2EB109223A7899800EBB34D /* IPUAMapResource.bundle in Resources */ = {isa = PBXBuildFile; fileRef = B2EB108A23A7899800EBB34D /* IPUAMapResource.bundle */; };
125
		B2FB3C00273CF58F00A522E0 /* IPUKeyboardPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = B2FB3BFF273CF58E00A522E0 /* IPUKeyboardPlugin.m */; };
125 126
		B2FC4B15219178DD008F7621 /* anticon.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B2FC4B14219178DD008F7621 /* anticon.ttf */; };
126 127
		B2FF4F0221D4F33800EAE775 /* PhoneNumber.m in Sources */ = {isa = PBXBuildFile; fileRef = B254176721A5512C00ABCE93 /* PhoneNumber.m */; };
127 128
		EA8712411ECD8B580045E19A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = EA8712401ECD8B580045E19A /* main.m */; };
@ -564,6 +565,8 @@
564 565
		B2EB108823A7899800EBB34D /* IPUVideoResouce.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = IPUVideoResouce.bundle; path = ../IPUCommon/IPUVideoResouce.bundle; sourceTree = "<group>"; };
565 566
		B2EB108923A7899800EBB34D /* IPUMobileResource.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = IPUMobileResource.bundle; path = ../IPUCommon/IPUMobileResource.bundle; sourceTree = "<group>"; };
566 567
		B2EB108A23A7899800EBB34D /* IPUAMapResource.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = IPUAMapResource.bundle; path = ../IPUCommon/IPUAMapResource.bundle; sourceTree = "<group>"; };
568
		B2FB3BFE273CF58E00A522E0 /* IPUKeyboardPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IPUKeyboardPlugin.h; sourceTree = "<group>"; };
569
		B2FB3BFF273CF58E00A522E0 /* IPUKeyboardPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IPUKeyboardPlugin.m; sourceTree = "<group>"; };
567 570
		B2FC4B14219178DD008F7621 /* anticon.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = anticon.ttf; sourceTree = "<group>"; };
568 571
		EA87123C1ECD8B580045E19A /* display-center.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "display-center.app"; sourceTree = BUILT_PRODUCTS_DIR; };
569 572
		EA8712401ECD8B580045E19A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
@ -946,6 +949,8 @@
946 949
				EA8712461ECD8B580045E19A /* ViewController.m */,
947 950
				B254176A21A5512C00ABCE93 /* PhoneNumber.h */,
948 951
				B254176721A5512C00ABCE93 /* PhoneNumber.m */,
952
				B2FB3BFE273CF58E00A522E0 /* IPUKeyboardPlugin.h */,
953
				B2FB3BFF273CF58E00A522E0 /* IPUKeyboardPlugin.m */,
949 954
				B20BD4BA238D0907009A9CB9 /* IPURNFinishVCPlugin.h */,
950 955
				B20BD4BB238D0907009A9CB9 /* IPURNFinishVCPlugin.m */,
951 956
				A7E9FDA425807DF700F01252 /* IPUAppDelegate+IPUBaiduCustomPaoPaoViewAppdelegate.h */,
@ -1456,6 +1461,7 @@
1456 1461
				EA8712411ECD8B580045E19A /* main.m in Sources */,
1457 1462
				B2C8BE0821A7E94C0009FED8 /* UIButton+SuspendAddition.m in Sources */,
1458 1463
				B20BD4BF238D099E009A9CB9 /* IPURNMobileUIPlugin.m in Sources */,
1464
				B2FB3C00273CF58F00A522E0 /* IPUKeyboardPlugin.m in Sources */,
1459 1465
				B20BD4BC238D0907009A9CB9 /* IPURNFinishVCPlugin.m in Sources */,
1460 1466
				A791DA3D240904CD0022E097 /* IPUOCRPlugin.m in Sources */,
1461 1467
				A71ACD16242B3D5D000B0B14 /* IPUFaceCheckPlugin.m in Sources */,

+ 3 - 0
display-center/display-center.xcworkspace/contents.xcworkspacedata

@ -2,6 +2,9 @@
2 2
<Workspace
3 3
   version = "1.0">
4 4
   <FileRef
5
      location = "group:../../iOS-Plugin/IPUKeyboard/IPUKeyboard/IPUKeyboard.xcodeproj">
6
   </FileRef>
7
   <FileRef
5 8
      location = "group:../../iOS/IPUFoundation/IPUFoundation.xcodeproj">
6 9
   </FileRef>
7 10
   <FileRef

二進制
display-center/display-center.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate


+ 30 - 0
display-center/display-center/IPUKeyboardPlugin.h

@ -0,0 +1,30 @@
1
//
2
//     ***   * * * *  *     *
3
//     *    *     *  *     *
4
//    *    * * * *  *     *
5
//   *    *        *     *
6
// ***   *        * * * *
7
//
8
//  IPUKeyboardPlugin.h
9
//  display-center
10
//  Created by Benny (AsiaInfo PRD IPU) on 2021/1/27 14:06.
11
//  Copyright © 2021 shelomi. All rights reserved.
12
//
13
        
14
#import <IPUMobile/IPUMobile.h>
15
16
@interface IPUKeyboardPlugin : IPUPlugin
17
18
/// 打开自定义键盘
19
/// @param params ["key", "'{"isRandom" : true, "enablePreview" : false, "exitTouchOutside": "false", "contnet" : "text"}'"]
20
/// isRandom: 否打乱键盘按键,默认false
21
/// enablePreview: 是否打开按键预览,默认true
22
/// exitTouchOutside: 点击键盘外部区域是否退出键盘,默认true
23
/// contnet: 输入框内容
24
- (void)openKeyboard:(NSArray *)params;
25
26
/// 关闭自定义键盘
27
/// @param params <#params description#>
28
- (void)closeKeyboard:(NSArray *)params;
29
30
@end

+ 92 - 0
display-center/display-center/IPUKeyboardPlugin.m

@ -0,0 +1,92 @@
1
//
2
//     ***   * * * *  *     *
3
//     *    *     *  *     *
4
//    *    * * * *  *     *
5
//   *    *        *     *
6
// ***   *        * * * *
7
//
8
//  IPUKeyboardPlugin.m
9
//  display-center
10
//  Created by Benny (AsiaInfo PRD IPU) on 2021/1/27 14:06.
11
//  Copyright © 2021 shelomi. All rights reserved.
12
//
13
        
14
#import "IPUKeyboardPlugin.h"
15
16
#import <IPUKeyboard/IPUKeyboard.h>
17
18
@interface IPUKeyboardPlugin () <IPUKeyboardEditDelegate>
19
20
@property (nonatomic, copy) NSString *callbackKey;
21
22
@property (nonatomic, strong) IPUKeyboard *keyboard;
23
24
@end
25
26
@implementation IPUKeyboardPlugin
27
28
- (void)openKeyboard:(NSArray *)params {
29
    if (!params || !params.count) {
30
        [self error:@"参数有误。"];
31
        return;
32
    }
33
    
34
    self.callbackKey = params[0];
35
    if (![self.callbackKey isKindOfClass:[NSString class]] || !self.callbackKey.length) {
36
        [self error:@"参数有误。"];
37
        return;
38
    }
39
    
40
    BOOL random = NO;
41
    BOOL preview = YES;
42
    BOOL exitTouchOutside = YES;
43
    NSString *content = @"";
44
    if (params.count > 1) {
45
        NSDictionary *dict = [IPUJSONHelper toDictionary:params[1]];
46
        random = [dict[@"isRandom"] boolValue];
47
        preview = [dict[@"enablePreview"] boolValue];
48
        exitTouchOutside = [dict[@"exitTouchOutside"] boolValue];
49
        content = dict[@"content"] ? : @"";
50
    }
51
    
52
    UIViewController *vc = (UIViewController *)self.mobileDelegate;
53
    [vc.view endEditing:YES];
54
    
55
    if (!self.keyboard) {
56
        IPUKeyboard *keyboard = [[IPUKeyboard alloc] initWithRandom:random
57
                                                            preview:preview
58
                                               hideWhenTouchOutside:NO];
59
        self.keyboard = keyboard;
60
        keyboard.delegate = self;
61
    }
62
    self.keyboard.text = content;
63
    
64
    if (!self.keyboard.superview) {
65
        [self.keyboard show];
66
    }
67
}
68
69
- (void)closeKeyboard:(NSArray *)params {
70
    [self.keyboard hide];
71
}
72
73
- (void)keyboardTextDidChange:(NSString *)content {
74
    NSString *js  = [NSString stringWithFormat:@"(function(msg){%@ (unescape(msg));})('%@')", self.callbackKey, content];
75
    
76
    [self executeJs:js];
77
}
78
79
- (void)keyboardDidBeginEditing {
80
    
81
}
82
83
- (void)keyboardDidDeleteLastCharacter:(NSString *)lastCharacter {
84
    NSString *js = [NSString stringWithFormat:@"(function(msg){%@ (unescape(msg));})('-1')", self.callbackKey];
85
    [self executeJs:js];
86
}
87
88
- (void)keyboardDidEndEditing:(NSString *)text {
89
    [self.keyboard removeFromSuperview];
90
}
91
92
@end

+ 5 - 26
display-center/display-center/ViewController.m

@ -15,7 +15,7 @@
15 15
#import <IPUMobileFunc/IPUMobileFunc.h>
16 16
#import <IpuCount/IpuProxy.h>
17 17
#import <WebKit/WebKit.h>
18
18
#import <IPUKeyboard/IPUKeyboard.h>
19 19
#import <objc/runtime.h>
20 20
21 21
@interface ViewController ()
@ -37,13 +37,6 @@
37 37
                                                                            target:self
38 38
                                                                            action:@selector(back)];
39 39
    [button addEventItem:item];
40
    
41
//    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
42
//        [IPUPluginManager execute:self
43
//                           action:@"showNotification"
44
//                       arrayParam:@[@"content", @"title"]
45
//                         callback:@"showNotification11"];
46
//    });
47 40
}
48 41
49 42
- (void)viewDidAppear:(BOOL)animated {
@ -63,6 +56,10 @@
63 56
}
64 57
65 58
- (void)back {
59
    
60
    
61
    return;
62
    
66 63
    UIViewController *viewController = [IPUUITool getCurrentViewController];
67 64
    
68 65
    if ([viewController isKindOfClass:[IPUViewController class]]) {
@ -159,21 +156,3 @@
159 156
}
160 157
161 158
@end
162
163
/*
164
 
165
 2021-04-27 17:28:13.739213+0800 display-center[2308:872330] [IPC] Received an invalid message 'WebPageProxy_RunJavaScriptAlert' from the WebContent process.
166
167
 2021-04-27 17:28:13.743248+0800 display-center[2308:872330] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}>
168
169
 2021-04-27 17:28:13.743346+0800 display-center[2308:872330] [ProcessSuspension] 0x109fb6640 - ProcessAssertion: Failed to acquire RBS Background assertion 'ConnectionTerminationWatchdog' for process with PID 2313, error: Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}
170
171
 2021-04-27 17:28:13.743461+0800 display-center[2308:872330] [Process] 0x14d07c018 - [pageProxyID=15, webPageID=16, PID=2313] WebPageProxy::processDidTerminate: (pid 2313), reason 3
172
173
 2021-04-27 17:28:13.746254+0800 display-center[2308:872330] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}>
174
175
 2021-04-27 17:28:13.746329+0800 display-center[2308:872330] [ProcessSuspension] 0x109fb6680 - ProcessAssertion: Failed to acquire RBS Background assertion 'WebProcess Background Assertion' for process with PID 2313, error: Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}
176
177
 2021-04-27 17:28:13.750036+0800 display-center[2308:872330] [Loading] 0x14d07c018 - [pageProxyID=15, webPageID=16, PID=2313] WebPageProxy::dispatchProcessDidTerminate: reason = 3
178
 
179
 */