cordova-plugin-appice 2.0.2 → 2.0.3
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/README.md +120 -120
- package/package.json +27 -23
- package/plugin.xml +131 -132
- package/scripts/BeforeAndroidBuilt.js +2 -3
- package/scripts/BeforeIosBuilt.js +38 -38
- package/scripts/androidAfterPluginAdd.js +159 -159
- package/scripts/androidAfterPluginRm.js +195 -195
- package/scripts/iOSAfterPluginAdd.js +98 -98
- package/scripts/iOSAfterPluginRm.js +74 -74
- package/src/build.gradle +5 -5
- package/src/firebase/modified/android/FirebasePluginMessagingService.java +356 -356
- package/src/firebase/modified/ios/AppDelegate+FirebasePlugin.m +529 -529
- package/src/firebase/original/android/FirebasePluginMessagingService.java +348 -348
- package/src/firebase/original/ios/AppDelegate+FirebasePlugin.m +519 -519
- package/src/ios/AppDelegate+AppICEPlugin.h +8 -8
- package/src/ios/AppDelegate+AppICEPlugin.m +259 -259
- package/src/ios/AppICEPlugin.h +89 -89
- package/src/ios/AppICEPlugin.m +1068 -1068
- package/www/AppICE.js +283 -278
package/src/ios/AppICEPlugin.h
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AppICEPlugin.h
|
|
3
|
-
// Copyright (C) 2015 AppICE
|
|
4
|
-
//
|
|
5
|
-
// This code is provided under a comercial License.
|
|
6
|
-
// A copy of this license has been distributed in a file called LICENSE
|
|
7
|
-
// with this source code.
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
#import <Cordova/CDVPlugin.h>
|
|
12
|
-
typedef void(^HttpSuccessBlock)(int statusCode, NSString* response);
|
|
13
|
-
typedef void(^HttpFailBlock)(NSError* error);
|
|
14
|
-
|
|
15
|
-
static NSString* const AIDidReceiveLocalNotification = @"AIDidReceiveLocalNotification";
|
|
16
|
-
static NSString* const AIDidReceiveRemoteNotification = @"AIDidReceiveRemoteNotification";
|
|
17
|
-
static NSString* const AIDidReceiveRemoteFNotification = @"AIDidReceiveRemoteFNotification";
|
|
18
|
-
static NSString* const AIDidReceiveNotificationResponse = @"AIDidReceiveNotificationResponse";
|
|
19
|
-
|
|
20
|
-
static NSString* const AIRemoteNotificationDidRegister = @"AIRemoteNotificationDidRegister";
|
|
21
|
-
static NSString* const AIRemoteNotificationRegisterError = @"AIRemoteNotificationRegisterError";
|
|
22
|
-
|
|
23
|
-
static NSString* const AIHandleOpenURLNotification = @"AIHandleOpenURLNotification";
|
|
24
|
-
|
|
25
|
-
static NSString* const AIHandleActionNotification = @"AIHandleActionNotification";
|
|
26
|
-
|
|
27
|
-
@interface AppICEPlugin : CDVPlugin
|
|
28
|
-
|
|
29
|
-
@property (nonatomic, copy) NSString *notificationCallbackId;
|
|
30
|
-
@property (nonatomic, retain) NSMutableArray *notificationStack;
|
|
31
|
-
|
|
32
|
-
+ (AppICEPlugin*) appice;
|
|
33
|
-
|
|
34
|
-
- (void)onNotificationOpen:(CDVInvokedUrlCommand*)command;
|
|
35
|
-
- (void)validateIntegration:(CDVInvokedUrlCommand*)command;
|
|
36
|
-
|
|
37
|
-
-(void)handleToken:(NSData *)deviceToken;
|
|
38
|
-
-(void)handleTokenError:(NSError *)error;
|
|
39
|
-
|
|
40
|
-
-(void)onHandleLocalNotification:(UILocalNotification *)notif;
|
|
41
|
-
-(void)onHandleOpenURLNotification:(NSURL *)url;
|
|
42
|
-
-(void)onHandleActionForIdentifier:(NSString *)identifier;
|
|
43
|
-
|
|
44
|
-
-(void)initSdk:(CDVInvokedUrlCommand *)command;
|
|
45
|
-
-(void)startContext:(CDVInvokedUrlCommand *)command;
|
|
46
|
-
-(void)trackTouches:(CDVInvokedUrlCommand *)command;
|
|
47
|
-
-(void)trackSwipes:(CDVInvokedUrlCommand *)command;
|
|
48
|
-
-(void)trackScreens:(CDVInvokedUrlCommand *)command;
|
|
49
|
-
-(void)stopContext:(CDVInvokedUrlCommand *)command;
|
|
50
|
-
-(void)isSemusiSensing:(CDVInvokedUrlCommand *)command;
|
|
51
|
-
-(void)setAsTestDevice:(CDVInvokedUrlCommand *)command;
|
|
52
|
-
-(void)removeAsTestDevice:(CDVInvokedUrlCommand *)command;
|
|
53
|
-
-(void)getIsTestDevice:(CDVInvokedUrlCommand *)command;
|
|
54
|
-
-(void)openPlayServiceUpdate:(CDVInvokedUrlCommand *)command;
|
|
55
|
-
-(void)getSdkVersion:(CDVInvokedUrlCommand *)command;
|
|
56
|
-
-(void)getSdkIntVersion:(CDVInvokedUrlCommand *)command;
|
|
57
|
-
-(void)setDeviceId:(CDVInvokedUrlCommand *)command;
|
|
58
|
-
-(void)getDeviceId:(CDVInvokedUrlCommand *)command;
|
|
59
|
-
-(void)getAndroidId:(CDVInvokedUrlCommand *)command;
|
|
60
|
-
-(void)getAppKey:(CDVInvokedUrlCommand *)command;
|
|
61
|
-
-(void)getApiKey:(CDVInvokedUrlCommand *)command;
|
|
62
|
-
-(void)getAppId:(CDVInvokedUrlCommand *)command;
|
|
63
|
-
-(void)getCurrentContext:(CDVInvokedUrlCommand *)command;
|
|
64
|
-
-(void)setAlias:(CDVInvokedUrlCommand *)command;
|
|
65
|
-
-(void)getAlias:(CDVInvokedUrlCommand *)command;
|
|
66
|
-
-(void)setUser:(CDVInvokedUrlCommand *)command;
|
|
67
|
-
-(void)getUser:(CDVInvokedUrlCommand *)command;
|
|
68
|
-
-(void)setChildId:(CDVInvokedUrlCommand *)command;
|
|
69
|
-
-(void)getChildId:(CDVInvokedUrlCommand *)command;
|
|
70
|
-
-(void)setReferrer:(CDVInvokedUrlCommand *)command;
|
|
71
|
-
-(void)getReferrer:(CDVInvokedUrlCommand *)command;
|
|
72
|
-
-(void)setInstallReferrer:(CDVInvokedUrlCommand *)command;
|
|
73
|
-
-(void)getInstallReferrer:(CDVInvokedUrlCommand *)command;
|
|
74
|
-
-(void)setInstaller:(CDVInvokedUrlCommand *)command;
|
|
75
|
-
-(void)getInstaller:(CDVInvokedUrlCommand *)command;
|
|
76
|
-
-(void)getGCMSenderId:(CDVInvokedUrlCommand *)command;
|
|
77
|
-
-(void)setCustomVariable:(CDVInvokedUrlCommand *)command;
|
|
78
|
-
-(void)getCustomVariable:(CDVInvokedUrlCommand *)command;
|
|
79
|
-
-(void)removeCustomVariable:(CDVInvokedUrlCommand *)command;
|
|
80
|
-
-(void)tagEvent:(CDVInvokedUrlCommand *)command;
|
|
81
|
-
-(void)setSmallIcon:(CDVInvokedUrlCommand *)command;
|
|
82
|
-
-(void)setSessionTimeout:(CDVInvokedUrlCommand *)command;
|
|
83
|
-
-(void)getSessionTimeout:(CDVInvokedUrlCommand *)command;
|
|
84
|
-
|
|
85
|
-
-(void)onHandleRemoteUNotification:(NSDictionary *)userInfo;
|
|
86
|
-
-(void)onHandleNotificationUResponse:(NSDictionary *)userInfo;
|
|
87
|
-
|
|
88
|
-
@end
|
|
89
|
-
|
|
1
|
+
//
|
|
2
|
+
// AppICEPlugin.h
|
|
3
|
+
// Copyright (C) 2015 AppICE
|
|
4
|
+
//
|
|
5
|
+
// This code is provided under a comercial License.
|
|
6
|
+
// A copy of this license has been distributed in a file called LICENSE
|
|
7
|
+
// with this source code.
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
|
|
11
|
+
#import <Cordova/CDVPlugin.h>
|
|
12
|
+
typedef void(^HttpSuccessBlock)(int statusCode, NSString* response);
|
|
13
|
+
typedef void(^HttpFailBlock)(NSError* error);
|
|
14
|
+
|
|
15
|
+
static NSString* const AIDidReceiveLocalNotification = @"AIDidReceiveLocalNotification";
|
|
16
|
+
static NSString* const AIDidReceiveRemoteNotification = @"AIDidReceiveRemoteNotification";
|
|
17
|
+
static NSString* const AIDidReceiveRemoteFNotification = @"AIDidReceiveRemoteFNotification";
|
|
18
|
+
static NSString* const AIDidReceiveNotificationResponse = @"AIDidReceiveNotificationResponse";
|
|
19
|
+
|
|
20
|
+
static NSString* const AIRemoteNotificationDidRegister = @"AIRemoteNotificationDidRegister";
|
|
21
|
+
static NSString* const AIRemoteNotificationRegisterError = @"AIRemoteNotificationRegisterError";
|
|
22
|
+
|
|
23
|
+
static NSString* const AIHandleOpenURLNotification = @"AIHandleOpenURLNotification";
|
|
24
|
+
|
|
25
|
+
static NSString* const AIHandleActionNotification = @"AIHandleActionNotification";
|
|
26
|
+
|
|
27
|
+
@interface AppICEPlugin : CDVPlugin
|
|
28
|
+
|
|
29
|
+
@property (nonatomic, copy) NSString *notificationCallbackId;
|
|
30
|
+
@property (nonatomic, retain) NSMutableArray *notificationStack;
|
|
31
|
+
|
|
32
|
+
+ (AppICEPlugin*) appice;
|
|
33
|
+
|
|
34
|
+
- (void)onNotificationOpen:(CDVInvokedUrlCommand*)command;
|
|
35
|
+
- (void)validateIntegration:(CDVInvokedUrlCommand*)command;
|
|
36
|
+
|
|
37
|
+
-(void)handleToken:(NSData *)deviceToken;
|
|
38
|
+
-(void)handleTokenError:(NSError *)error;
|
|
39
|
+
|
|
40
|
+
-(void)onHandleLocalNotification:(UILocalNotification *)notif;
|
|
41
|
+
-(void)onHandleOpenURLNotification:(NSURL *)url;
|
|
42
|
+
-(void)onHandleActionForIdentifier:(NSString *)identifier;
|
|
43
|
+
|
|
44
|
+
-(void)initSdk:(CDVInvokedUrlCommand *)command;
|
|
45
|
+
-(void)startContext:(CDVInvokedUrlCommand *)command;
|
|
46
|
+
-(void)trackTouches:(CDVInvokedUrlCommand *)command;
|
|
47
|
+
-(void)trackSwipes:(CDVInvokedUrlCommand *)command;
|
|
48
|
+
-(void)trackScreens:(CDVInvokedUrlCommand *)command;
|
|
49
|
+
-(void)stopContext:(CDVInvokedUrlCommand *)command;
|
|
50
|
+
-(void)isSemusiSensing:(CDVInvokedUrlCommand *)command;
|
|
51
|
+
-(void)setAsTestDevice:(CDVInvokedUrlCommand *)command;
|
|
52
|
+
-(void)removeAsTestDevice:(CDVInvokedUrlCommand *)command;
|
|
53
|
+
-(void)getIsTestDevice:(CDVInvokedUrlCommand *)command;
|
|
54
|
+
-(void)openPlayServiceUpdate:(CDVInvokedUrlCommand *)command;
|
|
55
|
+
-(void)getSdkVersion:(CDVInvokedUrlCommand *)command;
|
|
56
|
+
-(void)getSdkIntVersion:(CDVInvokedUrlCommand *)command;
|
|
57
|
+
-(void)setDeviceId:(CDVInvokedUrlCommand *)command;
|
|
58
|
+
-(void)getDeviceId:(CDVInvokedUrlCommand *)command;
|
|
59
|
+
-(void)getAndroidId:(CDVInvokedUrlCommand *)command;
|
|
60
|
+
-(void)getAppKey:(CDVInvokedUrlCommand *)command;
|
|
61
|
+
-(void)getApiKey:(CDVInvokedUrlCommand *)command;
|
|
62
|
+
-(void)getAppId:(CDVInvokedUrlCommand *)command;
|
|
63
|
+
-(void)getCurrentContext:(CDVInvokedUrlCommand *)command;
|
|
64
|
+
-(void)setAlias:(CDVInvokedUrlCommand *)command;
|
|
65
|
+
-(void)getAlias:(CDVInvokedUrlCommand *)command;
|
|
66
|
+
-(void)setUser:(CDVInvokedUrlCommand *)command;
|
|
67
|
+
-(void)getUser:(CDVInvokedUrlCommand *)command;
|
|
68
|
+
-(void)setChildId:(CDVInvokedUrlCommand *)command;
|
|
69
|
+
-(void)getChildId:(CDVInvokedUrlCommand *)command;
|
|
70
|
+
-(void)setReferrer:(CDVInvokedUrlCommand *)command;
|
|
71
|
+
-(void)getReferrer:(CDVInvokedUrlCommand *)command;
|
|
72
|
+
-(void)setInstallReferrer:(CDVInvokedUrlCommand *)command;
|
|
73
|
+
-(void)getInstallReferrer:(CDVInvokedUrlCommand *)command;
|
|
74
|
+
-(void)setInstaller:(CDVInvokedUrlCommand *)command;
|
|
75
|
+
-(void)getInstaller:(CDVInvokedUrlCommand *)command;
|
|
76
|
+
-(void)getGCMSenderId:(CDVInvokedUrlCommand *)command;
|
|
77
|
+
-(void)setCustomVariable:(CDVInvokedUrlCommand *)command;
|
|
78
|
+
-(void)getCustomVariable:(CDVInvokedUrlCommand *)command;
|
|
79
|
+
-(void)removeCustomVariable:(CDVInvokedUrlCommand *)command;
|
|
80
|
+
-(void)tagEvent:(CDVInvokedUrlCommand *)command;
|
|
81
|
+
-(void)setSmallIcon:(CDVInvokedUrlCommand *)command;
|
|
82
|
+
-(void)setSessionTimeout:(CDVInvokedUrlCommand *)command;
|
|
83
|
+
-(void)getSessionTimeout:(CDVInvokedUrlCommand *)command;
|
|
84
|
+
|
|
85
|
+
-(void)onHandleRemoteUNotification:(NSDictionary *)userInfo;
|
|
86
|
+
-(void)onHandleNotificationUResponse:(NSDictionary *)userInfo;
|
|
87
|
+
|
|
88
|
+
@end
|
|
89
|
+
|