Selaa lähdekoodia

IPU标准版:整理消息推送框架

liufl5 3 vuotta sitten
vanhempi
commit
a0741a1cef

+ 37 - 25
IPUCommon/IPUPush.framework/Headers/IPUJPushPlugin.h

@ -33,48 +33,60 @@
33 33
@property (nonatomic, assign) BOOL isLogin;
34 34
@property (nonatomic, assign) id <IPUJPushDelegate> delegate;
35 35
36
/*
36
#pragma mark - JS调用插件
37
/**
38
 推送平台注册
39
 插件名:registerForPushWithJpush
40
 */
41
- (void)registerForPush:(NSArray *)args;
42
/**
43
 推送平台注销
44
 插件名:unregisterForPushWithJpush
45
 */
46
- (void)unregisterForPush:(NSArray *)args;
47
/**
48
 订阅推送主题
49
 插件名:setJpushTags
50
 */
51
- (void)setPushWithTags:(NSArray *)tags;
52
/**
53
 设置极光推送别名
54
 插件名:setJpushAlias
55
 */
56
- (void)setPushWithAlias:(NSArray *)alias;
57
/**
58
 删除极光推送别名
59
 插件名:deleteAlias
60
 */
61
- (void)deleteAlias:(NSArray *)alias;
62
/**
63
 获取最新一条的缓存远程推送通知
64
 插件名:getJpushInfo
65
 */
66
- (void)getJpushInfo:(NSArray *)params;
67
68
#pragma mark - 原生调用方法
69
/**
37 70
 远程消息、自定义消息注册
38 71
 */
39 72
- (void)registerAPNSNotification;
40 73
41
/*
74
/**
42 75
 自定义消息注册
43 76
 */
44 77
- (void)registerCustomNotification;
45 78
46
/*
79
/**
47 80
 将获取的deviceToken发送到极光推送服务器
48 81
 */
49 82
- (void)sendDeviceToken:(NSData *)deviceToken;
50 83
51
/*
84
/**
52 85
 清空角标
53 86
 */
54 87
- (void)resetBadge;
55 88
56
/*
57
 JS外部调用方法
58
 */
59
- (void)registerForPush:(NSArray *)args;
60
- (void)unregisterForPush:(NSArray *)args;
61
- (void)setPushWithTags:(NSArray *)tags;
62
- (void)setPushWithAlias:(NSArray *)alias;
63
64
- (void)deleteAlias:(NSArray *)alias;
65
66
///* 在 Backgound 下,收到推送的处理方法,若无实现,使用默认方式实现 */
67
//- (void)backgroundMessageHandle:(NSNotification *)notification;
68
69
/*
70
 获取最新一条的缓存远程推送通知
71
 */
72
- (void)getJpushInfo:(NSArray *)params;
73 89
74
/*
75
 获取当前设备的推送权限是否打开。
76
*/
77
- (void)isNotificationBlocked:(NSArray *)params;
78 90
79 91
@end
80 92

+ 26 - 1
IPUCommon/IPUPush.framework/Headers/IPUYunBaPushPlugin.h

@ -20,7 +20,32 @@
20 20
@property (strong, nonatomic) NSString *recCallbak;
21 21
@property (strong, nonatomic) NSString *alias;
22 22
23
/* 在 Backgound 下,收到推送的处理方法,若无实现,使用默认方式实现 */
23
#pragma mark - JS调用插件
24
/**
25
 * 推送平台注册(使用云巴推送)
26
 * 插件名:registerForPushWithYunba
27
 */
28
- (void) registerForPush:(NSArray *)args;
29
/**
30
 * 推送平台注销(使用云巴推送)
31
 * 插件名:unregisterForPushWithYunba
32
 */
33
- (void) unregisterForPush:(NSArray *)args;
34
/**
35
 * 向指定用户发送文本信息(使用云巴推送)
36
 * 插件名:sendTextWithYunba
37
 */
38
- (void) sendText:(NSArray *)args;
39
/**
40
 * 设置收到信息后的监听回调函数(使用云巴推送)
41
 * 插件名:setCallbackForPushWithYunba
42
 */
43
- (void) setCallbackForPush:(NSArray *)args;
44
45
#pragma mark - other
46
/**
47
 * 在 Backgound 下,收到推送的处理方法,若无实现,使用默认方式实现
48
 */
24 49
- (void)backgroundMessageHandle:(NSNotification *)notification;
25 50
26 51
@end

BIN
IPUCommon/IPUPush.framework/IPUPush


BIN
IPUCommon/IPUPush.framework/Info.plist


BIN
SuperMenu/SuperMenu.xcodeproj/project.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate


+ 0 - 3
display-center/Res/config/mobile-action.xml

@ -147,7 +147,6 @@
147 147
    <action name="setJpushAlias"              class="IPUJPushPlugin" method="setPushWithAlias"/>
148 148
    <action name="deleteAlias"                class="IPUJPushPlugin" method="deleteAlias"/>
149 149
    <action name="getJpushInfo"               class="IPUJPushPlugin" method="getJpushInfo"/>
150
    <action name="isNotificationBlocked"      class="IPUJPushPlugin" method="isNotificationBlocked"/>
151 150
    
152 151
    <!-- voice recognition -->
153 152
    <action name="startListen"      class="IPUVoicePlugin" method="startListen"></action>
@ -214,8 +213,6 @@
214 213
    <action name="updateGestureLock"   class="IPUAuthenticationPlugin" method="updateGestureLock"/>
215 214
    <action name="delGestureLock"      class="IPUAuthenticationPlugin" method="delGestureLock"/>
216 215
    <action name="isSetGestureLock"    class="IPUAuthenticationPlugin" method="isSetGestureLock"/>
217
    
218
    
219 216
220 217
    <!-- OCR识别 -->
221 218
    <action name="getIdCardInfo" class="IPUOCRPlugin" method="getIdCardInfo"/>

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

@ -169,6 +169,20 @@
169 169
			remoteGlobalIDString = A78D31EF22CD9D0F00D5C38E;
170 170
			remoteInfo = IpuFaceCheckBundle;
171 171
		};
172
		04169F5D274CDA0B00AD9286 /* PBXContainerItemProxy */ = {
173
			isa = PBXContainerItemProxy;
174
			containerPortal = 04169F59274CDA0A00AD9286 /* IpuPush.xcodeproj */;
175
			proxyType = 2;
176
			remoteGlobalIDString = B28E587B21F6C4A200422D15;
177
			remoteInfo = IPUPush;
178
		};
179
		04169F63274CDF3C00AD9286 /* PBXContainerItemProxy */ = {
180
			isa = PBXContainerItemProxy;
181
			containerPortal = 04169F5F274CDF3C00AD9286 /* IPUMobileFunc.xcodeproj */;
182
			proxyType = 2;
183
			remoteGlobalIDString = B256EE2221F079F10096C446;
184
			remoteInfo = IPUMobileFunc;
185
		};
172 186
		B20C6CB32296334800AECAA6 /* PBXContainerItemProxy */ = {
173 187
			isa = PBXContainerItemProxy;
174 188
			containerPortal = B20C6CA82296334800AECAA6 /* React.xcodeproj */;
@ -485,6 +499,8 @@
485 499
/* Begin PBXFileReference section */
486 500
		04169F43274CD2C400AD9286 /* IPUOcr.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = IPUOcr.xcodeproj; path = "../../ios-plugin/IPUOcr/IPUOcr.xcodeproj"; sourceTree = "<group>"; };
487 501
		04169F4C274CD6C900AD9286 /* IpuFaceCheck.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = IpuFaceCheck.xcodeproj; path = "../../ios-plugin/IpuFaceCheck/IpuFaceCheck.xcodeproj"; sourceTree = "<group>"; };
502
		04169F59274CDA0A00AD9286 /* IpuPush.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = IpuPush.xcodeproj; path = "../../ios-plugin/IpuPush/IpuPush.xcodeproj"; sourceTree = "<group>"; };
503
		04169F5F274CDF3C00AD9286 /* IPUMobileFunc.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = IPUMobileFunc.xcodeproj; path = ../IPUMobileFunc/IPUMobileFunc.xcodeproj; sourceTree = "<group>"; };
488 504
		A71ACCEC242B3D5A000B0B14 /* IPUFaceCheckPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IPUFaceCheckPlugin.m; sourceTree = "<group>"; };
489 505
		A71ACD15242B3D5C000B0B14 /* IPUFaceCheckPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IPUFaceCheckPlugin.h; sourceTree = "<group>"; };
490 506
		A791DA11240904960022E097 /* IPUOcr.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IPUOcr.framework; path = ../IPUCommon/IPUOcr.framework; sourceTree = "<group>"; };
@ -704,6 +720,22 @@
704 720
			name = Products;
705 721
			sourceTree = "<group>";
706 722
		};
723
		04169F5A274CDA0A00AD9286 /* Products */ = {
724
			isa = PBXGroup;
725
			children = (
726
				04169F5E274CDA0B00AD9286 /* IPUPush.framework */,
727
			);
728
			name = Products;
729
			sourceTree = "<group>";
730
		};
731
		04169F60274CDF3C00AD9286 /* Products */ = {
732
			isa = PBXGroup;
733
			children = (
734
				04169F64274CDF3C00AD9286 /* IPUMobileFunc.framework */,
735
			);
736
			name = Products;
737
			sourceTree = "<group>";
738
		};
707 739
		0460E86120AA9C1300CCFDA4 /* Frameworks */ = {
708 740
			isa = PBXGroup;
709 741
			children = (
@ -968,6 +1000,8 @@
968 1000
		EA8712331ECD8B580045E19A = {
969 1001
			isa = PBXGroup;
970 1002
			children = (
1003
				04169F5F274CDF3C00AD9286 /* IPUMobileFunc.xcodeproj */,
1004
				04169F59274CDA0A00AD9286 /* IpuPush.xcodeproj */,
971 1005
				04169F4C274CD6C900AD9286 /* IpuFaceCheck.xcodeproj */,
972 1006
				04169F43274CD2C400AD9286 /* IPUOcr.xcodeproj */,
973 1007
				B20C89C02397CC1300471783 /* ShareResources */,
@ -1104,10 +1138,18 @@
1104 1138
					ProjectRef = 04169F4C274CD6C900AD9286 /* IpuFaceCheck.xcodeproj */;
1105 1139
				},
1106 1140
				{
1141
					ProductGroup = 04169F60274CDF3C00AD9286 /* Products */;
1142
					ProjectRef = 04169F5F274CDF3C00AD9286 /* IPUMobileFunc.xcodeproj */;
1143
				},
1144
				{
1107 1145
					ProductGroup = 04169F44274CD2C400AD9286 /* Products */;
1108 1146
					ProjectRef = 04169F43274CD2C400AD9286 /* IPUOcr.xcodeproj */;
1109 1147
				},
1110 1148
				{
1149
					ProductGroup = 04169F5A274CDA0A00AD9286 /* Products */;
1150
					ProjectRef = 04169F59274CDA0A00AD9286 /* IpuPush.xcodeproj */;
1151
				},
1152
				{
1111 1153
					ProductGroup = B20C6CF3229636E400AECAA6 /* Products */;
1112 1154
					ProjectRef = B20C6CF2229636E400AECAA6 /* RCTAnimation.xcodeproj */;
1113 1155
				},
@ -1203,6 +1245,20 @@
1203 1245
			remoteRef = 04169F57274CD6C900AD9286 /* PBXContainerItemProxy */;
1204 1246
			sourceTree = BUILT_PRODUCTS_DIR;
1205 1247
		};
1248
		04169F5E274CDA0B00AD9286 /* IPUPush.framework */ = {
1249
			isa = PBXReferenceProxy;
1250
			fileType = wrapper.framework;
1251
			path = IPUPush.framework;
1252
			remoteRef = 04169F5D274CDA0B00AD9286 /* PBXContainerItemProxy */;
1253
			sourceTree = BUILT_PRODUCTS_DIR;
1254
		};
1255
		04169F64274CDF3C00AD9286 /* IPUMobileFunc.framework */ = {
1256
			isa = PBXReferenceProxy;
1257
			fileType = wrapper.framework;
1258
			path = IPUMobileFunc.framework;
1259
			remoteRef = 04169F63274CDF3C00AD9286 /* PBXContainerItemProxy */;
1260
			sourceTree = BUILT_PRODUCTS_DIR;
1261
		};
1206 1262
		B20C6CB42296334800AECAA6 /* libReact.a */ = {
1207 1263
			isa = PBXReferenceProxy;
1208 1264
			fileType = archive.ar;

BIN
display-center/display-center.xcodeproj/project.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate