pushwoosh-cordova-plugin 8.3.6 → 8.3.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 (33) hide show
  1. package/README.md +3 -3
  2. package/README_PGB.md +1 -1
  3. package/build-extras-pushwoosh.gradle +8 -0
  4. package/package.json +1 -1
  5. package/plugin.xml +20 -23
  6. package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java +1 -1
  7. package/src/ios/Pushwoosh.framework/Modules/module.modulemap +0 -6
  8. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWAppDelegate.h +0 -20
  9. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWGDPRManager.h +0 -46
  10. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h +0 -174
  11. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInbox.h +0 -147
  12. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInlineInAppView.h +0 -26
  13. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWLog.h +0 -23
  14. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWMessaging.h +0 -20
  15. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h +0 -46
  16. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaManager.h +0 -118
  17. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaStyle.h +0 -122
  18. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h +0 -574
  19. package/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +0 -530
  20. package/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a +0 -0
  21. package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
  22. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
  23. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
  24. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
  25. package/src/ios/PushwooshInboxBundle.bundle/errorMessage@2x.png +0 -0
  26. package/src/ios/PushwooshInboxBundle.bundle/inbox_icon.png +0 -0
  27. package/src/ios/PushwooshInboxBundle.bundle/noMessage@2x.png +0 -0
  28. package/src/ios/PushwooshInboxBundle.bundle/unread.png +0 -0
  29. package/src/ios/PushwooshInboxUI.framework/Modules/module.modulemap +0 -6
  30. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxStyle.h +0 -122
  31. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxUI.h +0 -39
  32. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PushwooshInboxUI.h +0 -19
  33. package/src/ios/PushwooshInboxUI.framework/Versions/A/libPushwooshInboxUI.a +0 -0
package/README.md CHANGED
@@ -14,13 +14,13 @@ Cross-Platform push notifications by Pushwoosh for Cordova / PhoneGap
14
14
  Using npm (requires cordova 7.0+):
15
15
 
16
16
  ```
17
- cordova plugin add pushwoosh-cordova-plugin@8.3.6
17
+ cordova plugin add pushwoosh-cordova-plugin@8.3.8
18
18
  ```
19
19
 
20
20
  Using git:
21
21
 
22
22
  ```
23
- cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.3.6
23
+ cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.3.8
24
24
  ```
25
25
 
26
26
  #### Phonegap
@@ -28,7 +28,7 @@ cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#8.
28
28
  Using npm (requires phonegap 7.1+):
29
29
 
30
30
  ```
31
- cordova plugin add pushwoosh-cordova-plugin@8.3.6
31
+ cordova plugin add pushwoosh-cordova-plugin@8.3.8
32
32
  ```
33
33
 
34
34
  ### Guide
package/README_PGB.md CHANGED
@@ -14,7 +14,7 @@ Cross-Platform push notifications by Pushwoosh for PhoneGap
14
14
  Using npm (requires cordova 5.0+):
15
15
 
16
16
  ```
17
- cordova plugin add pushwoosh-pgb-plugin@8.3.6
17
+ cordova plugin add pushwoosh-pgb-plugin@8.3.8
18
18
  ```
19
19
 
20
20
  ### Guide
@@ -0,0 +1,8 @@
1
+ repositories {
2
+ maven { url 'https://maven.google.com' }
3
+ }
4
+
5
+ dependencies {
6
+ implementation 'com.google.firebase:firebase-core:(+,21.0.99]'
7
+ implementation 'com.google.firebase:firebase-messaging:(+,23.0.99]'
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwoosh-cordova-plugin",
3
- "version": "8.3.6",
3
+ "version": "8.3.8",
4
4
  "description": "\n This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).\n ",
5
5
  "main":"www/PushNotification.js",
6
6
  "typings":"types/index.d.ts",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pushwoosh-cordova-plugin" version="8.3.6">
2
+ <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pushwoosh-cordova-plugin" version="8.3.8">
3
3
 
4
4
  <name>Pushwoosh</name>
5
5
 
@@ -39,11 +39,11 @@
39
39
 
40
40
  <meta-data android:name="com.pushwoosh.internal.plugin_provider" android:value="com.pushwoosh.plugin.internal.PhonegapPluginProvider" />
41
41
 
42
- <!-- <service android:name="com.pushwoosh.plugin.pushnotifications.CustomFirebaseMessagingService" android:exported="false">-->
43
- <!-- <intent-filter>-->
44
- <!-- <action android:name="com.google.firebase.MESSAGING_EVENT"/>-->
45
- <!-- </intent-filter>-->
46
- <!-- </service>-->
42
+ <service android:name="com.pushwoosh.plugin.pushnotifications.CustomFirebaseMessagingService" android:exported="false">
43
+ <intent-filter>
44
+ <action android:name="com.google.firebase.MESSAGING_EVENT"/>
45
+ </intent-filter>
46
+ </service>
47
47
  </config-file>
48
48
 
49
49
  <config-file target="res/xml/config.xml" parent="/*">
@@ -67,8 +67,7 @@
67
67
  <source-file src="src/android/src/com/pushwoosh/plugin/internal/PhonegapPluginProvider.java"
68
68
  target-dir="src/com/pushwoosh/plugin/internal" />
69
69
 
70
- <framework src="com.google.firebase:firebase-core:(+,19.0.99]" />
71
- <framework src="com.google.firebase:firebase-messaging:(+,22.0.99]" />
70
+ <framework src="build-extras-pushwoosh.gradle" custom="true" type="gradleReference" />
72
71
 
73
72
  <framework src="com.android.support:support-v4:27.+" />
74
73
  <framework src="com.android.support:appcompat-v7:27.+" />
@@ -77,13 +76,13 @@
77
76
  <framework src="com.android.support.constraint:constraint-layout:1.0.2" />
78
77
  <framework src="com.github.bumptech.glide:glide:4.7.1" />
79
78
  <framework src="org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60" />
80
- <framework src="com.pushwoosh:pushwoosh:6.6.1"/>
81
- <framework src="com.pushwoosh:pushwoosh-amazon:6.6.1"/>
82
- <framework src="com.pushwoosh:pushwoosh-firebase:6.6.1"/>
83
- <framework src="com.pushwoosh:pushwoosh-badge:6.6.1"/>
84
- <framework src="com.pushwoosh:pushwoosh-inbox:6.6.1"/>
85
- <framework src="com.pushwoosh:pushwoosh-inbox-ui:6.6.1"/>
86
- <framework src="com.pushwoosh:pushwoosh-huawei:6.6.1"/>
79
+ <framework src="com.pushwoosh:pushwoosh:6.6.2"/>
80
+ <framework src="com.pushwoosh:pushwoosh-amazon:6.6.2"/>
81
+ <framework src="com.pushwoosh:pushwoosh-firebase:6.6.2"/>
82
+ <framework src="com.pushwoosh:pushwoosh-badge:6.6.2"/>
83
+ <framework src="com.pushwoosh:pushwoosh-inbox:6.6.2"/>
84
+ <framework src="com.pushwoosh:pushwoosh-inbox-ui:6.6.2"/>
85
+ <framework src="com.pushwoosh:pushwoosh-huawei:6.6.2"/>
87
86
  </platform>
88
87
 
89
88
  <!-- ios -->
@@ -129,14 +128,12 @@
129
128
  <pod name="PushwooshInboxUIXCFramework" spec="6.1.1" />
130
129
  </pods>
131
130
  </podspec>
132
- <framework src="Pods/PushwooshXCFramework/XCFramework/Pushwoosh.xcframework" embed="true" />
133
-
134
- <header-file src="src/ios/PushNotification.h" target-dir="ios"/>
135
- <source-file src="src/ios/PushNotification.m" target-dir="ios"/>
136
- <header-file src="src/ios/PWBackward.h" target-dir="ios"/>
137
- <source-file src="src/ios/PWBackward.m" target-dir="ios"/>
138
- <header-file src="src/ios/PWLog.h" target-dir="ios"/>
139
- <resource-file src="src/ios/" />
131
+
132
+ <header-file src="src/ios/PushNotification.h" />
133
+ <source-file src="src/ios/PushNotification.m" />
134
+ <header-file src="src/ios/PWBackward.h" />
135
+ <source-file src="src/ios/PWBackward.m" />
136
+ <header-file src="src/ios/PWLog.h" />
140
137
  </platform>
141
138
 
142
139
  <!-- wp8 -->
@@ -179,7 +179,7 @@ public class PushNotifications extends CordovaPlugin {
179
179
  Pushwoosh.getInstance().registerForPushNotifications(new Callback<RegisterForPushNotificationsResultData, RegisterForPushNotificationsException>() {
180
180
  @Override
181
181
  public void process(@NonNull final Result<RegisterForPushNotificationsResultData, RegisterForPushNotificationsException> result) {
182
- if (result.isSuccess() && result.getData != null) {
182
+ if (result.isSuccess() && result.getData() != null) {
183
183
  doOnRegistered(result.getData().getToken());
184
184
  } else if (result.getException() != null) {
185
185
  doOnRegisteredError(result.getException().getMessage());
@@ -1,6 +0,0 @@
1
- framework module Pushwoosh {
2
- umbrella header "PWMessaging.h"
3
-
4
- export *
5
- module * { export * }
6
- }
@@ -1,20 +0,0 @@
1
- //
2
- // PWAppDelegate.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2018
5
- //
6
-
7
- #if TARGET_OS_IPHONE
8
-
9
- #import <UIKit/UIKit.h>
10
-
11
- /*
12
- Base AppDelegate class for easier integration.
13
- */
14
- @interface PWAppDelegate : UIResponder <UIApplicationDelegate>
15
-
16
- @property (nonatomic, strong) UIWindow *window;
17
-
18
- @end
19
-
20
- #endif
@@ -1,46 +0,0 @@
1
- //
2
- // PWGDPRManager.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2018
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
-
9
- /*
10
- `PWGDPRManager` class offers access to the singleton-instance of the manager responsible for channels management required by GDPR.
11
- */
12
-
13
- FOUNDATION_EXPORT NSString * const PWGDPRStatusDidChangeNotification;
14
-
15
- @interface PWGDPRManager : NSObject
16
-
17
- /**
18
- Indicates availability of the GDPR compliance solution.
19
- */
20
- @property (nonatomic, readonly, getter=isAvailable) BOOL available;
21
-
22
- @property (nonatomic, readonly, getter=isCommunicationEnabled) BOOL communicationEnabled;
23
-
24
- @property (nonatomic, readonly, getter=isDeviceDataRemoved) BOOL deviceDataRemoved;
25
-
26
- + (instancetype)sharedManager;
27
-
28
- /**
29
- Enable/disable all communication with Pushwoosh. Enabled by default.
30
- */
31
- - (void)setCommunicationEnabled:(BOOL)enabled completion:(void (^)(NSError *error))completion;
32
-
33
- /**
34
- Removes all device data from Pushwoosh and stops all interactions and communication permanently.
35
- */
36
- - (void)removeAllDeviceDataWithCompletion:(void (^)(NSError *error))completion;
37
-
38
- #if TARGET_OS_IOS || TARGET_OS_OSX
39
-
40
- - (void)showGDPRConsentUI;
41
-
42
- - (void)showGDPRDeletionUI;
43
-
44
- #endif
45
-
46
- @end
@@ -1,174 +0,0 @@
1
- //
2
- // PWInAppManager.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2017
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
-
9
- #if TARGET_OS_IOS
10
-
11
- #import <WebKit/WebKit.h>
12
- /**
13
- `PWJavaScriptInterface` protocol is a representation of Javascript object that can be added at runtime into In-App Message HTML page
14
- to provide native calls and callbacks to Objective-C/Swift.
15
-
16
- Example:
17
-
18
- Objective-C:
19
- @code
20
- @implementation JavaScriptInterface
21
-
22
- - (void)nativeCall:(NSString*)str :(PWJavaScriptCallback*)callback {
23
- [callback executeWithParam:str];
24
- }
25
-
26
- @end
27
-
28
- ...
29
-
30
- [[PWInAppManager sharedManager] addJavascriptInterface:[JavaScriptInterface new] withName:@"ObjC"];
31
- @endcode
32
-
33
- JavaScript:
34
- @code
35
- ObjC.nativeCall("exampleString", function(str) {
36
- console.log(str);
37
- });
38
- @endcode
39
- */
40
- @protocol PWJavaScriptInterface
41
-
42
- @optional
43
-
44
- /**
45
- Tells the delegate that In-App Message load stated
46
- */
47
- - (void)onWebViewStartLoad:(WKWebView *)webView;
48
-
49
- /**
50
- Tells the delegate that In-App Message load finished
51
- */
52
- - (void)onWebViewFinishLoad:(WKWebView *)webView;
53
-
54
- /**
55
- Tells the delegate that In-App Message is closing
56
- */
57
- - (void)onWebViewStartClose:(WKWebView *)webView;
58
-
59
- @end
60
-
61
- /**
62
- `PWJavaScriptCallback` is a representation of Javascript function
63
- */
64
- @interface PWJavaScriptCallback : NSObject
65
-
66
- /**
67
- Invokes callback with no arguments
68
- */
69
- - (NSString*) execute;
70
-
71
- /**
72
- Invokes callback with one argument
73
- */
74
- - (NSString*) executeWithParam: (NSString*) param;
75
-
76
- /**
77
- Invokes callback with multiple arguments
78
- */
79
- - (NSString*) executeWithParams: (NSArray*) params;
80
-
81
- @end
82
-
83
- #endif
84
-
85
-
86
- /*
87
- `PWInAppManager` class offers access to the singleton-instance of the inapp messages manager responsible for sending events and managing inapp message notifications.
88
- */
89
- @interface PWInAppManager : NSObject
90
-
91
- + (instancetype)sharedManager;
92
-
93
- #if TARGET_OS_IOS || TARGET_OS_OSX
94
- /**
95
- Resets capping of the Pushwoosh out-of-the-box In-App solutions.
96
- */
97
- - (void)resetBusinessCasesFrequencyCapping;
98
-
99
- #endif
100
- /**
101
- Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
102
- This allows data and events to be matched across multiple user devices.
103
- */
104
- - (void)setUserId:(NSString *)userId;
105
-
106
- /**
107
- Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
108
- This allows data and events to be matched across multiple user devices.
109
- If setUser succeeds competion is called with nil argument. If setUser fails completion is called with error.
110
- */
111
- - (void)setUserId:(NSString *)userId completion:(void(^)(NSError * error))completion;
112
-
113
- /**
114
- Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
115
- This allows data and events to be matched across multiple user devices.
116
-
117
- @param userId user identifier
118
- @param emails user's emails array
119
- */
120
- - (void)setUser:(NSString *)userId emails:(NSArray *)emails completion:(void(^)(NSError * error))completion;
121
-
122
- /**
123
- Register emails list associated to the current user.
124
-
125
- @param emails user's emails array
126
- */
127
- - (void)setEmails:(NSArray *)emails completion:(void(^)(NSError * error))completion;
128
-
129
- /**
130
- Move all events from oldUserId to newUserId if doMerge is true. If doMerge is false all events for oldUserId are removed.
131
-
132
- @param oldUserId source user
133
- @param newUserId destination user
134
- @param doMerge if false all events for oldUserId are removed, if true all events for oldUserId are moved to newUserId
135
- @param completion callback
136
- */
137
- - (void)mergeUserId:(NSString *)oldUserId to:(NSString *)newUserId doMerge:(BOOL)doMerge completion:(void (^)(NSError *error))completion;
138
-
139
- /**
140
- Post events for In-App Messages. This can trigger In-App message display as specified in Pushwoosh Control Panel.
141
-
142
- Example:
143
- @code
144
- [[PWInAppManager sharedManager] setUserId:@"96da2f590cd7246bbde0051047b0d6f7"];
145
- [[PWInAppManager sharedManager] postEvent:@"buttonPressed" withAttributes:@{ @"buttonNumber" : @"4", @"buttonLabel" : @"Banner" } completion:nil];
146
- @endcode
147
-
148
- @param event name of the event
149
- @param attributes NSDictionary of event attributes
150
- @param completion function to call after posting event
151
- */
152
- - (void)postEvent:(NSString *)event withAttributes:(NSDictionary *)attributes completion:(void (^)(NSError *error))completion;
153
-
154
- /**
155
- See `postEvent:withAttributes:completion:`
156
- */
157
- - (void)postEvent:(NSString *)event withAttributes:(NSDictionary *)attributes;
158
-
159
- #if TARGET_OS_IOS
160
-
161
- /**
162
- Adds javascript interface for In-App Messages. Interface will be accessible from javascript as object with specified `name` and functions defined in `interface` class.
163
- */
164
- - (void)addJavascriptInterface:(NSObject<PWJavaScriptInterface>*)interface withName:(NSString*)name;
165
-
166
- /**
167
- Updates In-App messages storage on a device
168
- */
169
-
170
- - (void)reloadInAppsWithCompletion: (void (^)(NSError *error))completion;
171
-
172
- #endif
173
-
174
- @end
@@ -1,147 +0,0 @@
1
- //
2
- // PWInbox.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2017
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
-
9
-
10
- /**
11
- The notification arriving on the Inbox messages renewal
12
- */
13
- FOUNDATION_EXPORT NSString * const PWInboxMessagesDidUpdateNotification;
14
-
15
- /**
16
- The notification arriving when a push message is added to Inbox
17
- */
18
- FOUNDATION_EXPORT NSString * const PWInboxMessagesDidReceiveInPushNotification;
19
-
20
- /**
21
- The Inbox message type. Plain = without any action, Richmedia = contains a Rich media page, URL = contains remote URL, Deeplink = contains Deeplink
22
- */
23
- typedef NS_ENUM(NSInteger, PWInboxMessageType) {
24
- PWInboxMessageTypePlain = 0,
25
- PWInboxMessageTypeRichmedia = 1,
26
- PWInboxMessageTypeURL = 2,
27
- PWInboxMessageTypeDeeplink = 3
28
- };
29
-
30
-
31
- /**
32
- `PWInboxMessageProtocol` The protocol describing the Inbox message.
33
- */
34
- @protocol PWInboxMessageProtocol <NSObject>
35
-
36
- @required
37
-
38
- @property (readonly, nonatomic) NSString *code;
39
- @property (readonly, nonatomic) NSString *title;
40
- @property (readonly, nonatomic) NSString *imageUrl;
41
- @property (readonly, nonatomic) NSString *message;
42
- @property (readonly, nonatomic) NSDate *sendDate;
43
- @property (readonly, nonatomic) PWInboxMessageType type;
44
- //! Inbox Message which is read, see + (void)readMessagesWithCodes:(NSArray<NSString *> *)codes
45
- @property (readonly, nonatomic) BOOL isRead;
46
- //! Action of the Inbox Message is performed (if true, an action was performed in the Inbox see + (void)performActionForMessageWithCode:(NSString *)code or an action was performed on the push tap )
47
- @property (readonly, nonatomic) BOOL isActionPerformed;
48
- @property (readonly, nonatomic) NSDictionary *actionParams;
49
- @property (readonly, nonatomic) NSString *attachmentUrl;
50
-
51
- @end
52
-
53
- @interface PWInbox : NSObject
54
-
55
- - (instancetype)init NS_UNAVAILABLE;
56
-
57
- /**
58
- Get the number of the PWInboxMessageProtocol with no action performed
59
-
60
- @param completion - if successful, return the number of the InboxMessages with no action performed. Otherwise, return error
61
- */
62
- + (void)messagesWithNoActionPerformedCountWithCompletion:(void (^)(NSInteger count, NSError *error))completion;
63
-
64
- /**
65
- Get the number of the unread PWInboxMessageProtocol
66
-
67
- @param completion - if successful, return the number of the unread InboxMessages. Otherwise, return error
68
- */
69
- + (void)unreadMessagesCountWithCompletion:(void (^)(NSInteger count, NSError *error))completion;
70
-
71
- /**
72
- Get the total number of the PWInboxMessageProtocol
73
-
74
- @param completion - if successful, return the total number of the InboxMessages. Otherwise, return error
75
- */
76
- + (void)messagesCountWithCompletion:(void (^)(NSInteger count, NSError *error))completion;
77
-
78
- /**
79
- Get the collection of the PWInboxMessageProtocol that the user received
80
-
81
- @param completion - if successful, return the collection of the InboxMessages. Otherwise, return error
82
- */
83
- + (void)loadMessagesWithCompletion:(void (^)(NSArray<NSObject<PWInboxMessageProtocol> *> *messages, NSError *error))completion;
84
-
85
- /**
86
- Call this method to mark the list of InboxMessageProtocol as read
87
-
88
- @param codes of the inboxMessages
89
- */
90
- + (void)readMessagesWithCodes:(NSArray<NSString *> *)codes;
91
-
92
- /**
93
- Call this method, when the user clicks on the InboxMessageProtocol and the message’s action is performed
94
-
95
- @param code of the inboxMessage that the user tapped
96
- */
97
- + (void)performActionForMessageWithCode:(NSString *)code;
98
-
99
- /**
100
- Call this method, when the user deletes the list of InboxMessageProtocol manually
101
-
102
- @param codes of the list of InboxMessageProtocol.code that the user deleted
103
- */
104
- + (void)deleteMessagesWithCodes:(NSArray<NSString *> *)codes;
105
-
106
- /**
107
- Subscribe for messages arriving with push notifications. @warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications
108
-
109
- @param completion - return the collection of the InboxMessages.
110
- */
111
- + (id<NSObject>)addObserverForDidReceiveInPushNotificationCompletion:(void (^)(NSArray<NSObject<PWInboxMessageProtocol> *> *messagesAdded))completion;
112
-
113
- /**
114
- Subscribe for messages arriving when a message is deleted, added, or updated. @warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications
115
-
116
- @param completion - return the collection of the InboxMessages.
117
- */
118
- + (id<NSObject>)addObserverForUpdateInboxMessagesCompletion:(void (^)(NSArray<NSObject<PWInboxMessageProtocol> *> *messagesDeleted,
119
- NSArray<NSObject<PWInboxMessageProtocol> *> *messagesAdded,
120
- NSArray<NSObject<PWInboxMessageProtocol> *> *messagesUpdated))completion;
121
-
122
- /**
123
- Subscribe for unread messages count changes. @warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications
124
-
125
- @param block - return the count of unread messages.
126
- */
127
- + (id<NSObject>)addObserverForUnreadMessagesCountUsingBlock:(void (^)(NSUInteger count))block;
128
-
129
- /**
130
- Subscribe for messages with no action performed count changes. @warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications
131
-
132
- @param block - return the count of unread messages.
133
- */
134
- + (id<NSObject>)addObserverForNoActionPerformedMessagesCountUsingBlock:(void (^)(NSUInteger count))block;
135
-
136
- /**
137
- Unsubscribes from notifications
138
-
139
- @param observer - Unsubscribes observer
140
- */
141
- + (void)removeObserver:(id<NSObject>)observer;
142
-
143
- /**
144
- updates observers
145
- */
146
- + (void)updateInboxForNewUserId:(void (^)(NSUInteger messagesCount))completion;
147
- @end
@@ -1,26 +0,0 @@
1
- //
2
- // PWInlineInAppView.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2018
5
- //
6
-
7
- #import <UIKit/UIKit.h>
8
-
9
- @class PWInlineInAppView;
10
-
11
- @protocol PWInlineInAppViewDelegate <NSObject>
12
-
13
- @optional
14
- - (void)inlineInAppDidLoadInView:(PWInlineInAppView *)inAppView;
15
- - (void)didCloseInlineInAppView:(PWInlineInAppView *)inAppView;
16
- - (void)didChangeSizeOfInlineInAppView:(PWInlineInAppView *)inAppView;
17
-
18
- @end
19
-
20
- @interface PWInlineInAppView : UIView
21
-
22
- @property (nonatomic) IBInspectable NSString *identifier;
23
-
24
- @property (nonatomic, weak) id <PWInlineInAppViewDelegate> delegate;
25
-
26
- @end
@@ -1,23 +0,0 @@
1
- //
2
- // PWLog.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2016
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
-
9
- typedef NSString *PWLogLevel NS_EXTENSIBLE_STRING_ENUM;
10
-
11
- extern PWLogLevel const PWLogLevelNone;
12
- extern PWLogLevel const PWLogLevelError;
13
- extern PWLogLevel const PWLogLevelWarning;
14
- extern PWLogLevel const PWLogLevelInfo;
15
- extern PWLogLevel const PWLogLevelDebug;
16
- extern PWLogLevel const PWLogLevelVerbose;
17
-
18
- @interface PWLog : NSObject
19
-
20
- + (void)setLogsHandler:(void(^)(PWLogLevel level, NSString *description))logsHandler;
21
- + (void)removeLogsHandler;
22
-
23
- @end
@@ -1,20 +0,0 @@
1
- //
2
- // Pushwoosh.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2016
5
- //
6
-
7
- #import "PushNotificationManager.h"
8
- #import "Pushwoosh.h"
9
- #import "PWInAppManager.h"
10
- #import "PWLog.h"
11
- #import "PWGDPRManager.h"
12
-
13
- #if TARGET_OS_IOS
14
- #import "PWAppDelegate.h"
15
- #import "PWRichMediaManager.h"
16
- #import "PWRichMediaStyle.h"
17
- #import "PWInbox.h"
18
- #import "PWInlineInAppView.h"
19
- #import "PWNotificationExtensionManager.h"
20
- #endif
@@ -1,46 +0,0 @@
1
- //
2
- // PWNotificationExtensionManager.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2019
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
- #import <UserNotifications/UserNotifications.h>
9
-
10
- NS_ASSUME_NONNULL_BEGIN
11
-
12
- @interface PWNotificationExtensionManager : NSObject
13
-
14
- + (instancetype)sharedManager;
15
-
16
- /**
17
- Sends message delivery event to Pushwoosh and downloads media attachment. Call it from UNNotificationServiceExtension. Don't forget to set Pushwoosh_APPID in extension Info.plist.
18
-
19
- Example:
20
- @code
21
- - (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
22
- self.contentHandler = contentHandler;
23
- self.bestAttemptContent = [request.content mutableCopy];
24
-
25
- [[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request contentHandler:contentHandler];
26
- }
27
- @endcode
28
- */
29
- - (void)handleNotificationRequest:(UNNotificationRequest *)request contentHandler:(void (^)(UNNotificationContent *))contentHandler;
30
-
31
- /**
32
- Example:
33
- @code
34
- - (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
35
- self.contentHandler = contentHandler;
36
- self.bestAttemptContent = [request.content mutableCopy];
37
-
38
- [[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request withAppGroups:@"group.com.example_domain.example_app_name."];
39
- }
40
- @endcode
41
- */
42
- - (void)handleNotificationRequest:(UNNotificationRequest *)request withAppGroups:(NSString * _Nullable)appGroupsName;
43
-
44
- @end
45
-
46
- NS_ASSUME_NONNULL_END