cordova-plugin-appice 2.0.6 → 2.0.8

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.
Files changed (35) hide show
  1. package/README.md +122 -122
  2. package/example/config.xml +59 -59
  3. package/example/package.json +38 -38
  4. package/example/res/ai_android.pem +40 -40
  5. package/example/www/css/index.css +116 -116
  6. package/example/www/index.html +62 -62
  7. package/example/www/js/index.js +102 -102
  8. package/libcordova/android-release-aar.gradle +62 -62
  9. package/libcordova/build.gradle +50 -50
  10. package/libcordova/proguard-rules.pro +21 -21
  11. package/libcordova/src/main/AndroidManifest.xml +24 -24
  12. package/libcordova/src/main/java/com/appice/cordova/AppICEPlugin.java +968 -968
  13. package/libcordova/src/main/java/com/appice/cordova/CampaignCampsReceiver.java +95 -95
  14. package/libcordova/src/main/java/com/appice/cordova/NotificationEventService.java +55 -55
  15. package/libcordova/src/main/res/values/strings.xml +3 -3
  16. package/package.json +26 -26
  17. package/plugin.xml +128 -130
  18. package/scripts/BeforeAndroidBuilt.js +126 -112
  19. package/scripts/BeforeIosBuilt.js +38 -38
  20. package/scripts/androidAfterPluginAdd.js +159 -159
  21. package/scripts/androidAfterPluginRm.js +195 -195
  22. package/scripts/iOSAfterPluginAdd.js +98 -98
  23. package/scripts/iOSAfterPluginRm.js +74 -74
  24. package/src/build.gradle +14 -5
  25. package/src/firebase/modified/android/FirebasePluginMessagingService.java +356 -356
  26. package/src/firebase/modified/ios/AppDelegate+FirebasePlugin.m +529 -529
  27. package/src/firebase/modified/modified.iml +10 -10
  28. package/src/firebase/original/android/FirebasePluginMessagingService.java +348 -348
  29. package/src/firebase/original/ios/AppDelegate+FirebasePlugin.m +519 -519
  30. package/src/firebase/original/original.iml +10 -10
  31. package/src/ios/AppDelegate+AppICEPlugin.h +8 -8
  32. package/src/ios/AppDelegate+AppICEPlugin.m +191 -259
  33. package/src/ios/AppICEPlugin.h +90 -90
  34. package/src/ios/AppICEPlugin.m +1062 -1087
  35. package/www/AppICE.js +283 -283
@@ -1,90 +1,90 @@
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
- -(void)setUserId:(CDVInvokedUrlCommand *)command;
85
-
86
- -(void)onHandleRemoteUNotification:(NSDictionary *)userInfo;
87
- -(void)onHandleNotificationUResponse:(NSDictionary *)userInfo;
88
-
89
- @end
90
-
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
+ -(void)setUserId:(CDVInvokedUrlCommand *)command;
85
+
86
+ -(void)onHandleRemoteUNotification:(NSDictionary *)userInfo;
87
+ -(void)onHandleNotificationUResponse:(NSDictionary *)userInfo;
88
+
89
+ @end
90
+