@onekeyfe/react-native-jpush 0.0.0-stage → 6.7.0-22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +56 -2
- package/ReactNativeJpush.podspec +66 -0
- package/android/CMakeLists.txt +24 -0
- package/android/build.gradle +144 -0
- package/android/fcm/build.gradle +36 -0
- package/android/fcm/consumer-rules.pro +2 -0
- package/android/fcm/src/main/AndroidManifest.xml +25 -0
- package/android/fcm/src/main/java/com/onekey/jpush/fcm/FcmInitProvider.java +25 -0
- package/android/fcm/src/main/java/com/onekey/jpush/fcm/FcmMessagingService.java +84 -0
- package/android/fcm/src/main/java/com/onekey/jpush/fcm/FcmPushManager.java +69 -0
- package/android/fcm/src/test/java/com/onekey/jpush/fcm/FcmAdapterTest.java +684 -0
- package/android/fcm/src/test/java/com/onekey/jpush/fcm/FcmManifestTest.java +54 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +143 -0
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/cn/android/service/JTransitActivity.java +19 -0
- package/android/src/main/java/cn/jiguang/android/BuildConfig.java +10 -0
- package/android/src/main/java/cn/jiguang/android/IDataShare.java +190 -0
- package/android/src/main/java/cn/jiguang/api/BaseLogger.java +82 -0
- package/android/src/main/java/cn/jiguang/api/JAction.java +22 -0
- package/android/src/main/java/cn/jiguang/api/JActionExtra.java +21 -0
- package/android/src/main/java/cn/jiguang/api/JAnalyticsAction.java +11 -0
- package/android/src/main/java/cn/jiguang/api/JCoreInterface.java +228 -0
- package/android/src/main/java/cn/jiguang/api/JCoreManager.java +156 -0
- package/android/src/main/java/cn/jiguang/api/JDispatchAction.java +66 -0
- package/android/src/main/java/cn/jiguang/api/MultiSpHelper.java +114 -0
- package/android/src/main/java/cn/jiguang/api/ReportCallBack.java +9 -0
- package/android/src/main/java/cn/jiguang/api/SdkType.java +13 -0
- package/android/src/main/java/cn/jiguang/api/utils/JCollectionAuth.java +28 -0
- package/android/src/main/java/cn/jiguang/core/JCoreCrypto.java +545 -0
- package/android/src/main/java/cn/jiguang/core/JCoreStorage.java +737 -0
- package/android/src/main/java/cn/jiguang/core/JCoreTcpEngine.java +1395 -0
- package/android/src/main/java/cn/jiguang/core/JCoreWireCodec.java +1716 -0
- package/android/src/main/java/cn/jiguang/internal/ActionManager.java +63 -0
- package/android/src/main/java/cn/jiguang/internal/JConstants.java +61 -0
- package/android/src/main/java/cn/jiguang/internal/JCoreHelperAction.java +12 -0
- package/android/src/main/java/cn/jiguang/internal/JCoreInternalHelper.java +102 -0
- package/android/src/main/java/cn/jiguang/net/DefaultHostVerifier.java +40 -0
- package/android/src/main/java/cn/jiguang/net/HttpRequest.java +78 -0
- package/android/src/main/java/cn/jiguang/net/HttpResponse.java +48 -0
- package/android/src/main/java/cn/jiguang/net/HttpUtils.java +106 -0
- package/android/src/main/java/cn/jiguang/plugins/core/JCoreModule.java +91 -0
- package/android/src/main/java/cn/jiguang/plugins/core/JCorePackage.java +27 -0
- package/android/src/main/java/cn/jiguang/plugins/push/JPushModule.java +773 -0
- package/android/src/main/java/cn/jiguang/plugins/push/JPushPackage.java +25 -0
- package/android/src/main/java/cn/jiguang/plugins/push/common/JConstants.java +88 -0
- package/android/src/main/java/cn/jiguang/plugins/push/common/JLogger.java +122 -0
- package/android/src/main/java/cn/jiguang/plugins/push/helper/JPushHelper.java +710 -0
- package/android/src/main/java/cn/jiguang/plugins/push/receiver/JPushBroadcastReceiver.java +37 -0
- package/android/src/main/java/cn/jiguang/plugins/push/receiver/JPushModuleReceiver.java +264 -0
- package/android/src/main/java/cn/jiguang/plugins/service/JCoreModuleService.java +7 -0
- package/android/src/main/java/cn/jpush/android/api/BasicPushNotificationBuilder.java +83 -0
- package/android/src/main/java/cn/jpush/android/api/CallBackParams.java +50 -0
- package/android/src/main/java/cn/jpush/android/api/CmdMessage.java +33 -0
- package/android/src/main/java/cn/jpush/android/api/CustomMessage.java +28 -0
- package/android/src/main/java/cn/jpush/android/api/CustomPushNotificationBuilder.java +81 -0
- package/android/src/main/java/cn/jpush/android/api/DefaultPushNotificationBuilder.java +90 -0
- package/android/src/main/java/cn/jpush/android/api/InAppSlotParams.java +65 -0
- package/android/src/main/java/cn/jpush/android/api/InstrumentedActivity.java +17 -0
- package/android/src/main/java/cn/jpush/android/api/InstrumentedListActivity.java +17 -0
- package/android/src/main/java/cn/jpush/android/api/JPushInterface.java +490 -0
- package/android/src/main/java/cn/jpush/android/api/JPushMessage.java +121 -0
- package/android/src/main/java/cn/jpush/android/api/JThirdPlatFormInterface.java +247 -0
- package/android/src/main/java/cn/jpush/android/api/MultiActionsNotificationBuilder.java +72 -0
- package/android/src/main/java/cn/jpush/android/api/NotificationCustomButton.java +50 -0
- package/android/src/main/java/cn/jpush/android/api/NotificationMessage.java +67 -0
- package/android/src/main/java/cn/jpush/android/api/PushNotificationBuilder.java +13 -0
- package/android/src/main/java/cn/jpush/android/api/TagAliasCallback.java +8 -0
- package/android/src/main/java/cn/jpush/android/data/JPushCollectControl.java +96 -0
- package/android/src/main/java/cn/jpush/android/data/JPushConfig.java +79 -0
- package/android/src/main/java/cn/jpush/android/data/JPushConfigEx.java +41 -0
- package/android/src/main/java/cn/jpush/android/data/JPushLocalNotification.java +155 -0
- package/android/src/main/java/cn/jpush/android/helper/JCoreHelper.java +70 -0
- package/android/src/main/java/cn/jpush/android/helper/Logger.java +82 -0
- package/android/src/main/java/cn/jpush/android/local/ActionHelper.java +1293 -0
- package/android/src/main/java/cn/jpush/android/local/ActivityLifeCallBack.java +47 -0
- package/android/src/main/java/cn/jpush/android/local/JPushAction.java +67 -0
- package/android/src/main/java/cn/jpush/android/local/JPushConstants.java +34 -0
- package/android/src/main/java/cn/jpush/android/local/JPushResponse.java +26 -0
- package/android/src/main/java/cn/jpush/android/local/ProxyActivityAction.java +34 -0
- package/android/src/main/java/cn/jpush/android/service/AlarmReceiver.java +15 -0
- package/android/src/main/java/cn/jpush/android/service/BActivity.java +19 -0
- package/android/src/main/java/cn/jpush/android/service/DActivity.java +19 -0
- package/android/src/main/java/cn/jpush/android/service/DaemonService.java +17 -0
- package/android/src/main/java/cn/jpush/android/service/DataProvider.java +136 -0
- package/android/src/main/java/cn/jpush/android/service/DataShare.java +129 -0
- package/android/src/main/java/cn/jpush/android/service/DownloadProvider.java +139 -0
- package/android/src/main/java/cn/jpush/android/service/InitProvider.java +48 -0
- package/android/src/main/java/cn/jpush/android/service/JCommonService.java +79 -0
- package/android/src/main/java/cn/jpush/android/service/JNotifyActivity.java +28 -0
- package/android/src/main/java/cn/jpush/android/service/JPushMessageReceiver.java +94 -0
- package/android/src/main/java/cn/jpush/android/service/PushReceiver.java +26 -0
- package/android/src/main/java/cn/jpush/android/service/PushService.java +28 -0
- package/android/src/main/java/cn/jpush/android/service/SchedulerReceiver.java +17 -0
- package/android/src/main/java/cn/jpush/android/service/TagAliasReceiver.java +11 -0
- package/android/src/main/java/cn/jpush/android/service/WakedResultReceiver.java +24 -0
- package/android/src/main/java/cn/jpush/android/ui/FullScreenView.java +11 -0
- package/android/src/main/java/cn/jpush/android/ui/PopWinActivity.java +16 -0
- package/android/src/main/java/cn/jpush/android/ui/PushActivity.java +27 -0
- package/android/src/main/java/cn/jpush/android/ui/RoundedImageView.java +63 -0
- package/android/src/main/java/cn/jpush/android/ui/ShadowViewCard.java +56 -0
- package/android/src/main/java/cn/jpush/android/ups/ICallbackResult.java +5 -0
- package/android/src/main/java/cn/jpush/android/ups/JPushUPSManager.java +37 -0
- package/android/src/main/java/cn/jpush/android/ups/TokenResult.java +47 -0
- package/android/src/main/java/cn/jpush/android/ups/UPSRegisterCallBack.java +4 -0
- package/android/src/main/java/cn/jpush/android/ups/UPSTurnCallBack.java +4 -0
- package/android/src/main/java/cn/jpush/android/ups/UPSUnRegisterCallBack.java +4 -0
- package/android/src/main/java/com/margelo/nitro/reactnativejpush/ReactNativeJpush.kt +455 -0
- package/android/src/main/java/com/margelo/nitro/reactnativejpush/ReactNativeJpushPackage.kt +50 -0
- package/android/src/main/res/values/jpush_string.xml +7 -0
- package/android/src/main/res/values/jpush_style.xml +22 -0
- package/android/src/test/java/com/margelo/nitro/reactnativejpush/JPushCloudHandshakeTest.java +110 -0
- package/android/src/test/java/com/margelo/nitro/reactnativejpush/JPushHandshakeFailureTest.java +73 -0
- package/android/src/test/java/com/margelo/nitro/reactnativejpush/ReactNativeJpushProtocolTest.java +908 -0
- package/ios/ReactNativeJpush.swift +522 -0
- package/ios/bridge/RCTJCoreModule.h +5 -0
- package/ios/bridge/RCTJCoreModule.m +31 -0
- package/ios/bridge/RCTJPushEventQueue.h +14 -0
- package/ios/bridge/RCTJPushEventQueue.m +23 -0
- package/ios/bridge/RCTJPushModule.h +37 -0
- package/ios/bridge/RCTJPushModule.m +1165 -0
- package/ios/include/JCOREService.h +3 -0
- package/ios/include/JGCOREAPI.h +14 -0
- package/ios/include/JGInforCollectionAuth.h +17 -0
- package/ios/include/JGInforCollectionAuthItems.h +2 -0
- package/ios/include/JGPushNotificationTrigger.h +2 -0
- package/ios/include/JPUSHService.h +359 -0
- package/ios/jcore/JCOREConfiguration.h +141 -0
- package/ios/jcore/JCOREConfiguration.m +703 -0
- package/ios/jcore/JCORECrypto.h +73 -0
- package/ios/jcore/JCORECrypto.m +649 -0
- package/ios/jcore/JCORESisResolver.h +56 -0
- package/ios/jcore/JCORESisResolver.m +525 -0
- package/ios/jcore/JCORETcpSession.h +42 -0
- package/ios/jcore/JCORETcpSession.m +956 -0
- package/ios/jcore/JCOREWireProtocol.h +274 -0
- package/ios/jcore/JCOREWireProtocol.m +1453 -0
- package/ios/jpush/JPUSHModels.m +214 -0
- package/ios/jpush/JPUSHNotificationManager.h +34 -0
- package/ios/jpush/JPUSHNotificationManager.m +360 -0
- package/ios/jpush/JPUSHService.m +794 -0
- package/ios/tests/ReactNativeJpushTests.m +148 -0
- package/lib/module/ReactNativeJpush.nitro.js +4 -0
- package/lib/module/ReactNativeJpush.nitro.js.map +1 -0
- package/lib/module/index.js +801 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/ReactNativeJpush.nitro.d.ts +60 -0
- package/lib/typescript/src/ReactNativeJpush.nitro.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +235 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/nitro.json +23 -0
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string.hpp +76 -0
- package/nitrogen/generated/android/c++/JHybridReactNativeJpushSpec.cpp +310 -0
- package/nitrogen/generated/android/c++/JHybridReactNativeJpushSpec.hpp +115 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativejpush/Func_void_bool.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativejpush/Func_void_std__string_std__string.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativejpush/HybridReactNativeJpushSpec.kt +274 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativejpush/reactnativejpushOnLoad.kt +35 -0
- package/nitrogen/generated/android/reactnativejpush+autolinking.cmake +81 -0
- package/nitrogen/generated/android/reactnativejpush+autolinking.gradle +27 -0
- package/nitrogen/generated/android/reactnativejpushOnLoad.cpp +58 -0
- package/nitrogen/generated/android/reactnativejpushOnLoad.hpp +34 -0
- package/nitrogen/generated/ios/ReactNativeJpush+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ReactNativeJpush-Swift-Cxx-Bridge.cpp +49 -0
- package/nitrogen/generated/ios/ReactNativeJpush-Swift-Cxx-Bridge.hpp +147 -0
- package/nitrogen/generated/ios/ReactNativeJpush-Swift-Cxx-Umbrella.hpp +46 -0
- package/nitrogen/generated/ios/ReactNativeJpushAutolinking.mm +33 -0
- package/nitrogen/generated/ios/ReactNativeJpushAutolinking.swift +26 -0
- package/nitrogen/generated/ios/c++/HybridReactNativeJpushSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridReactNativeJpushSpecSwift.hpp +402 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridReactNativeJpushSpec.swift +107 -0
- package/nitrogen/generated/ios/swift/HybridReactNativeJpushSpec_cxx.swift +723 -0
- package/nitrogen/generated/shared/c++/HybridReactNativeJpushSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridReactNativeJpushSpec.hpp +116 -0
- package/package.json +174 -4
- package/src/ReactNativeJpush.nitro.ts +93 -0
- package/src/index.tsx +1090 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import "JGInforCollectionAuth.h"
|
|
3
|
+
|
|
4
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
5
|
+
|
|
6
|
+
@interface JGCOREAPI : NSObject
|
|
7
|
+
|
|
8
|
+
+ (void)ci:(BOOL)enable;
|
|
9
|
+
+ (void)printLog:(BOOL)enable;
|
|
10
|
+
+ (void)preferIPv6:(BOOL)preferIPv6;
|
|
11
|
+
|
|
12
|
+
@end
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
4
|
+
|
|
5
|
+
@interface JGInforCollectionAuthItems : NSObject
|
|
6
|
+
|
|
7
|
+
@property (nonatomic, assign) BOOL isAuth;
|
|
8
|
+
|
|
9
|
+
@end
|
|
10
|
+
|
|
11
|
+
@interface JGInforCollectionAuth : NSObject
|
|
12
|
+
|
|
13
|
+
+ (void)JCollectionAuth:(void (^_Nullable)(JGInforCollectionAuthItems *authInfo))authBlock;
|
|
14
|
+
|
|
15
|
+
@end
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#if __has_include(<UIKit/UIKit.h>)
|
|
3
|
+
#import <UIKit/UIKit.h>
|
|
4
|
+
#else
|
|
5
|
+
@class UILocalNotification;
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
@class CLRegion;
|
|
9
|
+
@class CLLocation;
|
|
10
|
+
@class UNUserNotificationCenter;
|
|
11
|
+
@class UNNotification;
|
|
12
|
+
@class UNNotificationResponse;
|
|
13
|
+
@class UNNotificationSound;
|
|
14
|
+
@class UNNotificationAttachment;
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
extern NSString *const kJPFNetworkIsConnectingNotification;
|
|
19
|
+
extern NSString *const kJPFNetworkDidSetupNotification;
|
|
20
|
+
extern NSString *const kJPFNetworkDidCloseNotification;
|
|
21
|
+
extern NSString *const kJPFNetworkDidRegisterNotification;
|
|
22
|
+
extern NSString *const kJPFNetworkFailedRegisterNotification;
|
|
23
|
+
extern NSString *const kJPFNetworkDidLoginNotification;
|
|
24
|
+
extern NSString *const kJPFNetworkDidReceiveMessageNotification;
|
|
25
|
+
extern NSString *const kJPFServiceErrorNotification;
|
|
26
|
+
|
|
27
|
+
typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
|
|
28
|
+
JPAuthorizationOptionNone = 0,
|
|
29
|
+
JPAuthorizationOptionBadge = (1 << 0),
|
|
30
|
+
JPAuthorizationOptionSound = (1 << 1),
|
|
31
|
+
JPAuthorizationOptionAlert = (1 << 2),
|
|
32
|
+
JPAuthorizationOptionCarPlay = (1 << 3),
|
|
33
|
+
JPAuthorizationOptionCriticalAlert = (1 << 4),
|
|
34
|
+
JPAuthorizationOptionProvidesAppNotificationSettings = (1 << 5),
|
|
35
|
+
JPAuthorizationOptionProvisional = (1 << 6),
|
|
36
|
+
JPAuthorizationOptionAnnouncement = (1 << 7),
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
|
|
40
|
+
JPAuthorizationNotDetermined = 0,
|
|
41
|
+
JPAuthorizationStatusDenied,
|
|
42
|
+
JPAuthorizationStatusAuthorized,
|
|
43
|
+
JPAuthorizationStatusProvisional,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
typedef void (^JPUSHTagsOperationCompletion)(NSInteger iResCode, NSSet *_Nullable iTags, NSInteger seq);
|
|
47
|
+
typedef void (^JPUSHTagValidOperationCompletion)(NSInteger iResCode, NSSet *_Nullable iTags, NSInteger seq, BOOL isBind);
|
|
48
|
+
typedef void (^JPUSHAliasOperationCompletion)(NSInteger iResCode, NSString *_Nullable iAlias, NSInteger seq);
|
|
49
|
+
typedef void (^JPUSHPropertiesOperationCompletion)(NSInteger iResCode, NSDictionary *_Nullable properties, NSInteger seq);
|
|
50
|
+
typedef void (^JPUSHLiveActivityTokenCompletion)(NSInteger iResCode, NSString *_Nullable iLiveActivityId, NSData *_Nullable token, NSInteger seq);
|
|
51
|
+
|
|
52
|
+
@interface JPUSHRegisterEntity : NSObject
|
|
53
|
+
|
|
54
|
+
@property (nonatomic, assign) NSInteger types;
|
|
55
|
+
@property (nonatomic, strong, nullable) NSSet *categories;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
@interface JPushNotificationIdentifier : NSObject <NSCopying, NSCoding>
|
|
60
|
+
|
|
61
|
+
@property (nonatomic, copy, nullable) NSArray<NSString *> *identifiers;
|
|
62
|
+
@property (nonatomic, copy, nullable) UILocalNotification *notificationObj;
|
|
63
|
+
@property (nonatomic, assign) BOOL delivered;
|
|
64
|
+
@property (nonatomic, copy, nullable) void (^findCompletionHandler)(NSArray *_Nullable results);
|
|
65
|
+
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
@interface JPushNotificationSound : NSObject <NSCopying, NSCoding>
|
|
69
|
+
|
|
70
|
+
@property (nonatomic, copy, nullable) NSString *soundName;
|
|
71
|
+
@property (nonatomic, copy, nullable) NSString *criticalSoundName;
|
|
72
|
+
@property (nonatomic, assign) float criticalSoundVolume;
|
|
73
|
+
@property (nonatomic, strong, nullable) UNNotificationSound *soundSetting;
|
|
74
|
+
|
|
75
|
+
@end
|
|
76
|
+
|
|
77
|
+
@interface JPushNotificationContent : NSObject <NSCopying, NSCoding>
|
|
78
|
+
|
|
79
|
+
@property (nonatomic, copy, nullable) NSString *title;
|
|
80
|
+
@property (nonatomic, copy, nullable) NSString *subtitle;
|
|
81
|
+
@property (nonatomic, copy, nullable) NSString *body;
|
|
82
|
+
@property (nonatomic, copy, nullable) NSNumber *badge;
|
|
83
|
+
@property (nonatomic, copy, nullable) NSString *action;
|
|
84
|
+
@property (nonatomic, copy, nullable) NSString *categoryIdentifier;
|
|
85
|
+
@property (nonatomic, copy, nullable) NSDictionary *userInfo;
|
|
86
|
+
@property (nonatomic, copy, nullable) NSString *sound;
|
|
87
|
+
@property (nonatomic, copy, nullable) JPushNotificationSound *soundSetting;
|
|
88
|
+
@property (nonatomic, copy, nullable) NSArray *attachments;
|
|
89
|
+
@property (nonatomic, copy, nullable) NSString *threadIdentifier;
|
|
90
|
+
@property (nonatomic, copy, nullable) NSString *launchImageName;
|
|
91
|
+
@property (nonatomic, copy, nullable) NSString *summaryArgument;
|
|
92
|
+
@property (nonatomic, assign) NSUInteger summaryArgumentCount;
|
|
93
|
+
@property (nonatomic, copy, nullable) NSString *targetContentIdentifier;
|
|
94
|
+
@property (nonatomic, assign) NSUInteger interruptionLevel;
|
|
95
|
+
@property (nonatomic, assign) double relevanceScore;
|
|
96
|
+
@property (nonatomic, copy, nullable) NSString *filterCriteria;
|
|
97
|
+
|
|
98
|
+
@end
|
|
99
|
+
|
|
100
|
+
@interface JPushNotificationTrigger : NSObject <NSCopying, NSCoding>
|
|
101
|
+
|
|
102
|
+
@property (nonatomic, assign) BOOL repeat;
|
|
103
|
+
@property (nonatomic, copy, nullable) NSDate *fireDate;
|
|
104
|
+
@property (nonatomic, copy, nullable) CLRegion *region;
|
|
105
|
+
@property (nonatomic, copy, nullable) NSDateComponents *dateComponents;
|
|
106
|
+
@property (nonatomic, assign) NSTimeInterval timeInterval;
|
|
107
|
+
|
|
108
|
+
@end
|
|
109
|
+
|
|
110
|
+
@interface JPushNotificationRequest : NSObject <NSCopying, NSCoding>
|
|
111
|
+
|
|
112
|
+
@property (nonatomic, copy, nullable) NSString *requestIdentifier;
|
|
113
|
+
@property (nonatomic, copy, nullable) JPushNotificationContent *content;
|
|
114
|
+
@property (nonatomic, copy, nullable) JPushNotificationTrigger *trigger;
|
|
115
|
+
@property (nonatomic, copy, nullable) void (^completionHandler)(id _Nullable result);
|
|
116
|
+
|
|
117
|
+
@end
|
|
118
|
+
|
|
119
|
+
@interface JPushInAppMessage : NSObject
|
|
120
|
+
|
|
121
|
+
@property (nonatomic, copy, nullable) NSString *mesageId;
|
|
122
|
+
@property (nonatomic, copy, nullable) NSString *title;
|
|
123
|
+
@property (nonatomic, copy, nullable) NSString *content;
|
|
124
|
+
@property (nonatomic, copy, nullable) NSArray *target;
|
|
125
|
+
@property (nonatomic, copy, nullable) NSString *clickAction;
|
|
126
|
+
@property (nonatomic, copy, nullable) NSDictionary *extras;
|
|
127
|
+
|
|
128
|
+
@end
|
|
129
|
+
|
|
130
|
+
@interface JPushCollectControl : NSObject
|
|
131
|
+
|
|
132
|
+
@property (nonatomic, assign) BOOL gps;
|
|
133
|
+
@property (nonatomic, assign) BOOL bssid;
|
|
134
|
+
@property (nonatomic, assign) BOOL ssid;
|
|
135
|
+
@property (nonatomic, assign) BOOL cell;
|
|
136
|
+
|
|
137
|
+
@end
|
|
138
|
+
|
|
139
|
+
@protocol JPUSHRegisterDelegate <NSObject>
|
|
140
|
+
@optional
|
|
141
|
+
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center
|
|
142
|
+
willPresentNotification:(UNNotification *)notification
|
|
143
|
+
withCompletionHandler:(void (^)(NSInteger options))completionHandler;
|
|
144
|
+
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center
|
|
145
|
+
didReceiveNotificationResponse:(UNNotificationResponse *)response
|
|
146
|
+
withCompletionHandler:(void (^)(void))completionHandler;
|
|
147
|
+
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center
|
|
148
|
+
openSettingsForNotification:(nullable UNNotification *)notification;
|
|
149
|
+
- (void)jpushNotificationAuthorization:(JPAuthorizationStatus)status
|
|
150
|
+
withInfo:(nullable NSDictionary *)info;
|
|
151
|
+
@end
|
|
152
|
+
|
|
153
|
+
@protocol JPUSHGeofenceDelegate <NSObject>
|
|
154
|
+
@optional
|
|
155
|
+
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId
|
|
156
|
+
didEnterRegionWithInfo:(nullable NSDictionary *)userInfo
|
|
157
|
+
error:(nullable NSError *)error;
|
|
158
|
+
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId
|
|
159
|
+
didExitRegionWithInfo:(nullable NSDictionary *)userInfo
|
|
160
|
+
error:(nullable NSError *)error;
|
|
161
|
+
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId
|
|
162
|
+
didEnterRegion:(nullable NSDictionary *)userInfo
|
|
163
|
+
error:(nullable NSError *)error;
|
|
164
|
+
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId
|
|
165
|
+
didExitRegion:(nullable NSDictionary *)userInfo
|
|
166
|
+
error:(nullable NSError *)error;
|
|
167
|
+
- (void)jpushCallbackGeofenceReceived:(nullable NSArray<NSDictionary *> *)geofenceList;
|
|
168
|
+
- (void)jpushGeofenceRegion:(nullable id)region error:(nullable NSError *)error;
|
|
169
|
+
@end
|
|
170
|
+
|
|
171
|
+
@protocol JPUSHNotiInMessageDelegate <NSObject>
|
|
172
|
+
@optional
|
|
173
|
+
- (void)jPushNotiInMessageDidShowWithContent:(NSDictionary *)content;
|
|
174
|
+
- (void)jPushNotiInMessageDidClickWithContent:(NSDictionary *)content;
|
|
175
|
+
@end
|
|
176
|
+
|
|
177
|
+
@protocol JPUSHInAppMessageDelegate <NSObject>
|
|
178
|
+
@optional
|
|
179
|
+
- (void)jPushInAppMessageDidShow:(JPushInAppMessage *)inAppMessage;
|
|
180
|
+
- (void)jPushInAppMessageDidClick:(JPushInAppMessage *)inAppMessage;
|
|
181
|
+
@end
|
|
182
|
+
|
|
183
|
+
@interface JPUSHService : NSObject
|
|
184
|
+
|
|
185
|
+
+ (void)setupWithOption:(nullable NSDictionary *)launchingOption
|
|
186
|
+
appKey:(NSString *)appKey
|
|
187
|
+
channel:(nullable NSString *)channel
|
|
188
|
+
apsForProduction:(BOOL)isProduction;
|
|
189
|
+
|
|
190
|
+
+ (void)setupWithOption:(nullable NSDictionary *)launchingOption
|
|
191
|
+
appKey:(NSString *)appKey
|
|
192
|
+
channel:(nullable NSString *)channel
|
|
193
|
+
apsForProduction:(BOOL)isProduction
|
|
194
|
+
advertisingIdentifier:(nullable NSString *)advertisingId;
|
|
195
|
+
|
|
196
|
+
+ (void)registerForRemoteNotificationTypes:(NSUInteger)types
|
|
197
|
+
categories:(nullable NSSet *)categories;
|
|
198
|
+
|
|
199
|
+
+ (void)registerForRemoteNotificationConfig:(JPUSHRegisterEntity *)config
|
|
200
|
+
delegate:(nullable id<JPUSHRegisterDelegate>)delegate;
|
|
201
|
+
|
|
202
|
+
+ (void)registerDeviceToken:(nullable NSData *)deviceToken;
|
|
203
|
+
+ (void)registerVoipToken:(nullable NSData *)voipToken;
|
|
204
|
+
+ (void)registerLiveActivity:(NSString *)activityAttributes
|
|
205
|
+
pushToStartToken:(nullable NSData *)pushToStartToken
|
|
206
|
+
completion:(nullable JPUSHLiveActivityTokenCompletion)completion
|
|
207
|
+
seq:(NSInteger)seq;
|
|
208
|
+
+ (void)registerLiveActivity:(NSString *)liveActivityType
|
|
209
|
+
pushToken:(nullable NSData *)pushToken
|
|
210
|
+
completion:(nullable JPUSHLiveActivityTokenCompletion)completion
|
|
211
|
+
seq:(NSInteger)seq;
|
|
212
|
+
+ (void)registerLiveActivityId:(NSString *)liveActivityId
|
|
213
|
+
pushToken:(nullable NSData *)pushToken
|
|
214
|
+
completion:(nullable JPUSHLiveActivityTokenCompletion)completion
|
|
215
|
+
seq:(NSInteger)seq;
|
|
216
|
+
|
|
217
|
+
+ (void)handleRemoteNotification:(nullable NSDictionary *)remoteInfo;
|
|
218
|
+
+ (void)handleVoipNotification:(nullable NSDictionary *)remoteInfo;
|
|
219
|
+
|
|
220
|
+
+ (void)setNotiInMessageDelegate:(nullable id<JPUSHNotiInMessageDelegate>)notiInMessageDelegate;
|
|
221
|
+
+ (void)setInAppMessageDelegate:(nullable id<JPUSHInAppMessageDelegate>)inAppMessageDelegate;
|
|
222
|
+
+ (void)registerLbsGeofenceDelegate:(nullable id<JPUSHGeofenceDelegate>)delegate
|
|
223
|
+
withLaunchOptions:(nullable NSDictionary *)launchOptions;
|
|
224
|
+
|
|
225
|
+
+ (void)setGeofenceMaxCount:(NSInteger)count;
|
|
226
|
+
+ (void)setGeofeneceMaxCount:(NSInteger)count;
|
|
227
|
+
+ (void)setGeofenecePeriodForInside:(NSInteger)seconds;
|
|
228
|
+
+ (void)removeGeofenceWithIdentifier:(NSString *)geofenceId;
|
|
229
|
+
+ (void)setLocationEanable:(BOOL)isEanble;
|
|
230
|
+
+ (void)setLatitude:(double)latitude longitude:(double)longitude;
|
|
231
|
+
+ (void)setLocation:(nullable id)location;
|
|
232
|
+
|
|
233
|
+
+ (void)pullInAppMessageWithPage:(NSString *)pageName
|
|
234
|
+
completion:(nullable void (^)(NSInteger iResCode))completion;
|
|
235
|
+
|
|
236
|
+
+ (void)addNotification:(JPushNotificationRequest *)request;
|
|
237
|
+
+ (void)removeNotification:(nullable JPushNotificationIdentifier *)identifier;
|
|
238
|
+
+ (void)findNotification:(JPushNotificationIdentifier *)identifier;
|
|
239
|
+
|
|
240
|
+
+ (nullable UILocalNotification *)setLocalNotification:(NSDate *)fireDate
|
|
241
|
+
alertBody:(nullable NSString *)alertBody
|
|
242
|
+
badge:(int)badge
|
|
243
|
+
alertAction:(nullable NSString *)alertAction
|
|
244
|
+
identifierKey:(nullable NSString *)notificationKey
|
|
245
|
+
userInfo:(nullable NSDictionary *)userInfo
|
|
246
|
+
soundName:(nullable NSString *)soundName;
|
|
247
|
+
|
|
248
|
+
+ (nullable UILocalNotification *)setLocalNotification:(NSDate *)fireDate
|
|
249
|
+
alertBody:(nullable NSString *)alertBody
|
|
250
|
+
badge:(int)badge
|
|
251
|
+
alertAction:(nullable NSString *)alertAction
|
|
252
|
+
identifierKey:(nullable NSString *)notificationKey
|
|
253
|
+
userInfo:(nullable NSDictionary *)userInfo
|
|
254
|
+
soundName:(nullable NSString *)soundName
|
|
255
|
+
region:(nullable CLRegion *)region
|
|
256
|
+
regionTriggersOnce:(BOOL)regionTriggersOnce
|
|
257
|
+
category:(nullable NSString *)category;
|
|
258
|
+
|
|
259
|
+
+ (void)showLocalNotificationAtFront:(UILocalNotification *)notification
|
|
260
|
+
identifierKey:(nullable NSString *)notificationKey;
|
|
261
|
+
+ (void)deleteLocalNotificationWithIdentifierKey:(NSString *)notificationKey;
|
|
262
|
+
+ (void)deleteLocalNotification:(UILocalNotification *)localNotification;
|
|
263
|
+
+ (nullable NSArray *)findLocalNotificationWithIdentifier:(NSString *)notificationKey;
|
|
264
|
+
+ (void)clearAllLocalNotifications;
|
|
265
|
+
|
|
266
|
+
+ (BOOL)setBadge:(NSInteger)value;
|
|
267
|
+
+ (void)resetBadge;
|
|
268
|
+
|
|
269
|
+
+ (nullable NSString *)registrationID;
|
|
270
|
+
+ (void)registrationIDCompletionHandler:(void (^)(int resCode, NSString *_Nullable registrationID))completionHandler;
|
|
271
|
+
|
|
272
|
+
+ (void)setDebugMode;
|
|
273
|
+
+ (void)setLogOFF;
|
|
274
|
+
+ (void)crashLogON;
|
|
275
|
+
|
|
276
|
+
+ (void)setCollectControl:(JPushCollectControl *)control;
|
|
277
|
+
+ (void)setUserid:(nullable NSString *)userId;
|
|
278
|
+
+ (void)setTimedaley:(NSInteger)time;
|
|
279
|
+
|
|
280
|
+
+ (void)setTags:(nullable NSSet<NSString *> *)tags
|
|
281
|
+
completion:(nullable JPUSHTagsOperationCompletion)completion
|
|
282
|
+
seq:(NSInteger)seq;
|
|
283
|
+
+ (void)addTags:(nullable NSSet<NSString *> *)tags
|
|
284
|
+
completion:(nullable JPUSHTagsOperationCompletion)completion
|
|
285
|
+
seq:(NSInteger)seq;
|
|
286
|
+
+ (void)deleteTags:(nullable NSSet<NSString *> *)tags
|
|
287
|
+
completion:(nullable JPUSHTagsOperationCompletion)completion
|
|
288
|
+
seq:(NSInteger)seq;
|
|
289
|
+
+ (void)cleanTags:(nullable JPUSHTagsOperationCompletion)completion
|
|
290
|
+
seq:(NSInteger)seq;
|
|
291
|
+
+ (void)getAllTags:(nullable JPUSHTagsOperationCompletion)completion
|
|
292
|
+
seq:(NSInteger)seq;
|
|
293
|
+
+ (void)validTag:(NSString *)tag
|
|
294
|
+
completion:(nullable JPUSHTagValidOperationCompletion)completion
|
|
295
|
+
seq:(NSInteger)seq;
|
|
296
|
+
+ (nullable NSSet *)filterValidTags:(nullable NSSet *)tags;
|
|
297
|
+
|
|
298
|
+
+ (void)setAlias:(nullable NSString *)alias
|
|
299
|
+
completion:(nullable JPUSHAliasOperationCompletion)completion
|
|
300
|
+
seq:(NSInteger)seq;
|
|
301
|
+
+ (void)deleteAlias:(nullable JPUSHAliasOperationCompletion)completion
|
|
302
|
+
seq:(NSInteger)seq;
|
|
303
|
+
+ (void)getAlias:(nullable JPUSHAliasOperationCompletion)completion
|
|
304
|
+
seq:(NSInteger)seq;
|
|
305
|
+
|
|
306
|
+
+ (void)setProperties:(nullable NSDictionary *)properties
|
|
307
|
+
completion:(nullable JPUSHPropertiesOperationCompletion)completion
|
|
308
|
+
seq:(NSInteger)seq;
|
|
309
|
+
+ (void)deleteProperties:(nullable NSSet<NSString *> *)keys
|
|
310
|
+
completion:(nullable JPUSHPropertiesOperationCompletion)completion
|
|
311
|
+
seq:(NSInteger)seq;
|
|
312
|
+
+ (void)cleanProperties:(nullable JPUSHPropertiesOperationCompletion)completion
|
|
313
|
+
seq:(NSInteger)seq;
|
|
314
|
+
|
|
315
|
+
+ (void)setMobileNumber:(NSString *)mobileNumber
|
|
316
|
+
completion:(nullable void (^)(NSError *_Nullable error))completion;
|
|
317
|
+
|
|
318
|
+
+ (void)startLogPageView:(NSString *)pageName;
|
|
319
|
+
+ (void)stopLogPageView:(NSString *)pageName;
|
|
320
|
+
+ (void)beginLogPageView:(NSString *)pageName duration:(int)seconds;
|
|
321
|
+
+ (void)pageEnterTo:(NSString *)pageName;
|
|
322
|
+
+ (void)pageLeave:(NSString *)pageName;
|
|
323
|
+
|
|
324
|
+
+ (void)requestNotificationAuthorization:(nullable void (^)(JPAuthorizationStatus status))completion;
|
|
325
|
+
+ (void)openSettingsForNotification:(nullable void (^)(BOOL success))completionHandler;
|
|
326
|
+
|
|
327
|
+
+ (void)setHeartBeatTimeInterval:(NSInteger)interval;
|
|
328
|
+
+ (void)setPushEnable:(BOOL)isEnable completion:(nullable void (^)(NSInteger iResCode))completion;
|
|
329
|
+
+ (void)setBackgroundEnable:(BOOL)isEnable;
|
|
330
|
+
+ (void)setSmartPushEnable:(BOOL)isEnable;
|
|
331
|
+
+ (void)setDataInsightsEnable:(BOOL)isEnable;
|
|
332
|
+
|
|
333
|
+
+ (void)turnOnPush;
|
|
334
|
+
+ (void)turnONPush;
|
|
335
|
+
+ (void)turnOFFPush;
|
|
336
|
+
|
|
337
|
+
+ (void)setTags:(nullable NSSet *)tags
|
|
338
|
+
alias:(nullable NSString *)alias
|
|
339
|
+
callbackSelector:(nullable SEL)cbSelector
|
|
340
|
+
target:(nullable id)theTarget;
|
|
341
|
+
+ (void)setTags:(nullable NSSet *)tags
|
|
342
|
+
alias:(nullable NSString *)alias
|
|
343
|
+
callbackSelector:(nullable SEL)cbSelector
|
|
344
|
+
object:(nullable id)theTarget;
|
|
345
|
+
+ (void)setTags:(nullable NSSet *)tags
|
|
346
|
+
callbackSelector:(nullable SEL)cbSelector
|
|
347
|
+
object:(nullable id)theTarget;
|
|
348
|
+
+ (void)setTags:(nullable NSSet *)tags
|
|
349
|
+
alias:(nullable NSString *)alias
|
|
350
|
+
fetchCompletionHandle:(nullable void (^)(int iResCode, NSSet *_Nullable iTags, NSString *_Nullable iAlias))completionHandler;
|
|
351
|
+
+ (void)setTags:(nullable NSSet *)tags
|
|
352
|
+
aliasInbackground:(nullable NSString *)alias;
|
|
353
|
+
+ (void)setAlias:(nullable NSString *)alias
|
|
354
|
+
callbackSelector:(nullable SEL)cbSelector
|
|
355
|
+
object:(nullable id)theTarget;
|
|
356
|
+
|
|
357
|
+
@end
|
|
358
|
+
|
|
359
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#if __has_include("JGCOREAPI.h")
|
|
3
|
+
#import "JGCOREAPI.h"
|
|
4
|
+
#import "JGInforCollectionAuth.h"
|
|
5
|
+
#else
|
|
6
|
+
#import "../include/JGCOREAPI.h"
|
|
7
|
+
#import "../include/JGInforCollectionAuth.h"
|
|
8
|
+
#endif
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface JCOREConfiguration : NSObject
|
|
13
|
+
|
|
14
|
+
+ (instancetype)shared;
|
|
15
|
+
|
|
16
|
+
@property (nonatomic, copy, nullable) NSString *appKey;
|
|
17
|
+
@property (nonatomic, copy) NSString *channel;
|
|
18
|
+
@property (nonatomic, assign) BOOL isProduction;
|
|
19
|
+
@property (nonatomic, copy, nullable) NSString *advertisingIdentifier;
|
|
20
|
+
@property (nonatomic, copy, nullable) NSString *accountID;
|
|
21
|
+
|
|
22
|
+
@property (nonatomic, assign) uint64_t uid;
|
|
23
|
+
@property (nonatomic, copy, nullable) NSString *password;
|
|
24
|
+
@property (nonatomic, copy, nullable) NSString *registrationID;
|
|
25
|
+
@property (nonatomic, copy, nullable) NSString *deviceID;
|
|
26
|
+
@property (nonatomic, assign) BOOL isNewDevice;
|
|
27
|
+
@property (nonatomic, assign) uint32_t lastRegisterSeed;
|
|
28
|
+
|
|
29
|
+
@property (nonatomic, copy, nullable) NSString *deviceTokenHex;
|
|
30
|
+
@property (nonatomic, copy, nullable) NSString *voipTokenHex;
|
|
31
|
+
|
|
32
|
+
@property (nonatomic, assign) uint8_t buildType;
|
|
33
|
+
@property (nonatomic, assign) uint8_t apsType;
|
|
34
|
+
@property (nonatomic, assign) uint8_t encryptionAlgorithm;
|
|
35
|
+
|
|
36
|
+
@property (nonatomic, assign) BOOL collectionAuthorized;
|
|
37
|
+
@property (nonatomic, assign) BOOL pushStopped;
|
|
38
|
+
@property (nonatomic, assign) BOOL debugEnabled;
|
|
39
|
+
@property (nonatomic, assign) BOOL logOff;
|
|
40
|
+
@property (nonatomic, assign) BOOL localLogEnabled;
|
|
41
|
+
@property (nonatomic, assign) BOOL forceLocalLogWhenLogOff;
|
|
42
|
+
@property (nonatomic, assign) BOOL preferIPv6;
|
|
43
|
+
@property (nonatomic, assign) NSTimeInterval heartbeatInterval;
|
|
44
|
+
|
|
45
|
+
@property (nonatomic, assign) NSTimeInterval reconnectBaseInterval;
|
|
46
|
+
@property (nonatomic, assign) NSTimeInterval requestTimeoutInterval;
|
|
47
|
+
@property (nonatomic, assign) NSTimeInterval requestResendInterval;
|
|
48
|
+
@property (nonatomic, assign) NSTimeInterval connectTimeoutInterval;
|
|
49
|
+
|
|
50
|
+
@property (nonatomic, copy, nullable) NSString *httpReportUrl;
|
|
51
|
+
|
|
52
|
+
@property (nonatomic, copy) NSArray<NSString *> *sisHostDomains;
|
|
53
|
+
@property (nonatomic, copy) NSArray<NSString *> *sisDefaultIps;
|
|
54
|
+
@property (nonatomic, copy) NSArray<NSString *> *httpsSisUrls;
|
|
55
|
+
@property (nonatomic, copy) NSString *defaultConnectHost;
|
|
56
|
+
@property (nonatomic, copy) NSArray<NSNumber *> *defaultConnectPorts;
|
|
57
|
+
|
|
58
|
+
@property (nonatomic, copy, nullable, readonly) NSString *customConnectHost;
|
|
59
|
+
@property (nonatomic, assign, readonly) uint16_t customConnectPort;
|
|
60
|
+
@property (nonatomic, assign, readonly) BOOL customConnectUseSSL;
|
|
61
|
+
@property (nonatomic, copy, nullable) NSArray<NSString *> *customConnectAddresses;
|
|
62
|
+
|
|
63
|
+
// Persisted SIS resolution state
|
|
64
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *ips;
|
|
65
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *sslIps;
|
|
66
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *sisIps;
|
|
67
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *httpReportAddresses;
|
|
68
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *httpsReportAddresses;
|
|
69
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *userAddresses;
|
|
70
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *sslUserAddresses;
|
|
71
|
+
@property (nonatomic, copy, readonly) NSDictionary<NSString *, NSArray<NSString *> *> *tcpReportAddresses;
|
|
72
|
+
@property (nonatomic, assign, readonly) NSInteger certVer;
|
|
73
|
+
@property (nonatomic, assign, readonly) BOOL dataReport;
|
|
74
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *lastSuccessSisIps;
|
|
75
|
+
@property (nonatomic, copy, readonly) NSArray<NSString *> *failedIps;
|
|
76
|
+
|
|
77
|
+
- (void)configureWithAppKey:(NSString *)appKey
|
|
78
|
+
channel:(nullable NSString *)channel
|
|
79
|
+
isProduction:(BOOL)isProduction
|
|
80
|
+
advertisingIdentifier:(nullable NSString *)advertisingId;
|
|
81
|
+
|
|
82
|
+
- (void)setCustomConnectHost:(nullable NSString *)host
|
|
83
|
+
port:(uint16_t)port
|
|
84
|
+
useSSL:(BOOL)useSSL;
|
|
85
|
+
- (void)clearCustomConnectEndpoint;
|
|
86
|
+
|
|
87
|
+
- (void)updateRegistrationWithUid:(uint64_t)uid
|
|
88
|
+
password:(nullable NSString *)password
|
|
89
|
+
registrationID:(nullable NSString *)registrationID;
|
|
90
|
+
- (void)updateRegistrationWithUid:(uint64_t)uid
|
|
91
|
+
password:(nullable NSString *)password
|
|
92
|
+
registrationID:(nullable NSString *)registrationID
|
|
93
|
+
deviceID:(nullable NSString *)deviceID;
|
|
94
|
+
- (void)resetRegistration;
|
|
95
|
+
|
|
96
|
+
- (void)updateWithSisDictionary:(NSDictionary *)sisDict;
|
|
97
|
+
- (void)addFailedIp:(NSString *)ipPort;
|
|
98
|
+
- (void)clearFailedIps;
|
|
99
|
+
- (void)addLastSuccessSisIp:(NSString *)ipPort;
|
|
100
|
+
- (void)resetSisCache;
|
|
101
|
+
|
|
102
|
+
- (NSString *)fakeIMEI;
|
|
103
|
+
- (NSString *)resolveDeviceIDWithOutHasExisting:(BOOL *_Nullable)outHasExisting;
|
|
104
|
+
- (NSString *)bundleIdentifierString;
|
|
105
|
+
- (NSString *)appVersionString;
|
|
106
|
+
- (NSString *)osVersionString;
|
|
107
|
+
- (NSString *)modelNameString;
|
|
108
|
+
|
|
109
|
+
- (NSString *)fallbackRegistrationID;
|
|
110
|
+
- (void)ensureLocalRegistrationFallbackIfNeeded;
|
|
111
|
+
|
|
112
|
+
- (NSSet<NSString *> *)storedTags;
|
|
113
|
+
- (void)saveStoredTags:(NSSet<NSString *> *)tags;
|
|
114
|
+
|
|
115
|
+
- (nullable NSString *)storedAlias;
|
|
116
|
+
- (void)saveStoredAlias:(nullable NSString *)alias;
|
|
117
|
+
|
|
118
|
+
- (NSDictionary<NSString *, id> *)storedProperties;
|
|
119
|
+
- (void)saveStoredProperties:(NSDictionary<NSString *, id> *)properties;
|
|
120
|
+
|
|
121
|
+
- (nullable NSString *)storedMobileNumber;
|
|
122
|
+
- (void)saveStoredMobileNumber:(nullable NSString *)mobileNumber;
|
|
123
|
+
|
|
124
|
+
- (uint16_t)nextRequestId;
|
|
125
|
+
|
|
126
|
+
- (void)log:(NSString *)format, ... NS_FORMAT_FUNCTION(1, 2);
|
|
127
|
+
|
|
128
|
+
+ (void)logDebug:(NSString *)message;
|
|
129
|
+
+ (void)logInfo:(NSString *)message;
|
|
130
|
+
+ (void)logWarn:(NSString *)message;
|
|
131
|
+
+ (void)logError:(NSString *)message;
|
|
132
|
+
+ (void)setLocalLogEnabled:(BOOL)enabled;
|
|
133
|
+
+ (NSArray<NSString *> *)recentLogs;
|
|
134
|
+
+ (void)clearRecentLogs;
|
|
135
|
+
|
|
136
|
+
@end
|
|
137
|
+
|
|
138
|
+
@interface JCOREPersistence : JCOREConfiguration
|
|
139
|
+
@end
|
|
140
|
+
|
|
141
|
+
NS_ASSUME_NONNULL_END
|