pushwoosh-cordova-plugin 8.3.7 → 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 (32) 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/ios/Pushwoosh.framework/Modules/module.modulemap +0 -6
  7. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWAppDelegate.h +0 -20
  8. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWGDPRManager.h +0 -46
  9. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h +0 -174
  10. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInbox.h +0 -147
  11. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInlineInAppView.h +0 -26
  12. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWLog.h +0 -23
  13. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWMessaging.h +0 -20
  14. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h +0 -46
  15. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaManager.h +0 -118
  16. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaStyle.h +0 -122
  17. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h +0 -574
  18. package/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +0 -530
  19. package/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a +0 -0
  20. package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
  21. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
  22. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
  23. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
  24. package/src/ios/PushwooshInboxBundle.bundle/errorMessage@2x.png +0 -0
  25. package/src/ios/PushwooshInboxBundle.bundle/inbox_icon.png +0 -0
  26. package/src/ios/PushwooshInboxBundle.bundle/noMessage@2x.png +0 -0
  27. package/src/ios/PushwooshInboxBundle.bundle/unread.png +0 -0
  28. package/src/ios/PushwooshInboxUI.framework/Modules/module.modulemap +0 -6
  29. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxStyle.h +0 -122
  30. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxUI.h +0 -39
  31. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PushwooshInboxUI.h +0 -19
  32. package/src/ios/PushwooshInboxUI.framework/Versions/A/libPushwooshInboxUI.a +0 -0
@@ -1,574 +0,0 @@
1
- //
2
- // PushNotificationManager.h
3
- // Pushwoosh SDK
4
- // (c) Pushwoosh 2014
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
-
9
- #if TARGET_OS_IOS
10
-
11
- #import <UIKit/UIKit.h>
12
- #import <StoreKit/StoreKit.h>
13
-
14
- #endif
15
-
16
-
17
- @class PushNotificationManager;
18
-
19
- #if TARGET_OS_IOS || TARGET_OS_WATCH
20
-
21
- #import <UserNotifications/UserNotifications.h>
22
-
23
- @class CLLocation;
24
-
25
- #endif
26
-
27
- typedef void (^PushwooshGetTagsHandler)(NSDictionary *tags);
28
- typedef void (^PushwooshErrorHandler)(NSError *error);
29
-
30
- /**
31
- `PushNotificationDelegate` protocol defines the methods that can be implemented in the delegate of the `PushNotificationManager` class' singleton object.
32
- These methods provide information about the key events for push notification manager such as registering with APS services, receiving push notifications or working with the received notification.
33
- These methods implementation allows to react on these events properly.
34
-
35
- Deprecated. Use PWMessagingDelegate instead.
36
- */
37
- @protocol PushNotificationDelegate
38
-
39
- @optional
40
- /**
41
- Tells the delegate that the application has registered with Apple Push Service (APS) successfully.
42
-
43
- @param token A token used for identifying the device with APS.
44
- */
45
- - (void)onDidRegisterForRemoteNotificationsWithDeviceToken:(NSString *)token;
46
-
47
- /**
48
- Sent to the delegate when Apple Push Service (APS) could not complete the registration process successfully.
49
-
50
- @param error An NSError object encapsulating the information about the reason of the registration failure. Within this method you can define application's behaviour in case of registration failure.
51
- */
52
- - (void)onDidFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
53
-
54
- /**
55
- Tells the delegate that the push manager has received a remote notification.
56
-
57
- @param pushManager The push manager that received the remote notification.
58
- @param pushNotification A dictionary that contains information referring to the remote notification, potentially including a badge number for the application icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data.
59
- The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.
60
- @param onStart If the application was not foreground when the push notification was received, the application will be opened with this parameter equal to `YES`, otherwise the parameter will be `NO`.
61
- */
62
- - (void)onPushReceived:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart;
63
-
64
- /**
65
- Tells the delegate that the user has pressed OK on the push notification.
66
- IMPORTANT: This method is used for backwards compatibility and is deprecated. Please use the `onPushAccepted:withNotification:onStart:` method instead
67
-
68
- @param pushManager The push manager that received the remote notification.
69
- @param pushNotification A dictionary that contains information referring to the remote notification, potentially including a badge number for the application icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data.
70
- The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.
71
- Push dictionary sample:
72
- @code
73
- {
74
- aps = {
75
- alert = "Some text.";
76
- sound = default;
77
- };
78
- p = 1pb;
79
- }
80
- @endcode
81
- */
82
- - (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification DEPRECATED_ATTRIBUTE;
83
-
84
- /**
85
- Tells the delegate that a custom action was triggered when opening a notification.
86
-
87
- @param identifier NSString containing an ID of a clicked button. This ID is set by a user when creating a category in the Pushwoosh Control Panel
88
- @param notification NSDictionary with push payload.
89
- */
90
- - (void)onActionIdentifierReceived:(NSString *)identifier withNotification:(NSDictionary *)notification;
91
-
92
- /**
93
- Tells the delegate that the user has pressed on the push notification banner.
94
-
95
- @param pushManager The push manager that received the remote notification.
96
- @param pushNotification A dictionary that contains information about the remote notification, potentially including a badge number for the application icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data.
97
- The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.
98
- Push dictionary sample:
99
- @code
100
- {
101
- aps = {
102
- alert = "Some text.";
103
- sound = default;
104
- };
105
- p = 1pb;
106
- }
107
- @endcode
108
-
109
- @param onStart If the application was not foreground when the push notification was received, the application will be opened with this parameter equal to `YES`, otherwise the parameter will be `NO`.
110
- */
111
- - (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart;
112
-
113
- /**
114
- Tells the delegate that the push manager has received tags from the server.
115
-
116
- @param tags Dictionary representation of received tags.
117
- Dictionary example:
118
- @code
119
- {
120
- Country = ru;
121
- Language = ru;
122
- }
123
- @endcode
124
- */
125
- - (void)onTagsReceived:(NSDictionary *)tags;
126
-
127
- /**
128
- Sent to the delegate when push manager could not complete the tags receiving process successfully.
129
-
130
- @param error An NSError object that encapsulates information why receiving tags did not succeed.
131
- */
132
- - (void)onTagsFailedToReceive:(NSError *)error;
133
-
134
- /**
135
- Tells the delegate that In-App with specified code has been closed
136
-
137
- @param code In-App code
138
- */
139
- - (void)onInAppClosed:(NSString *)code __attribute__((deprecated("Use PWRichMediaPresentingDelegate protocol from PWRichMediaManager.h")));
140
-
141
- /**
142
- Tells the delegate that In-App with specified code has been displayed
143
-
144
- @param code In-App code
145
- */
146
- - (void)onInAppDisplayed:(NSString *)code __attribute__((deprecated("Use PWRichMediaPresentingDelegate protocol from PWRichMediaManager.h")));
147
-
148
-
149
- #if TARGET_OS_IOS || TARGET_OS_WATCH
150
- /**
151
- The method will be called on the delegate when the application is launched in response to the user's request to view in-app notification settings.
152
- Add UNAuthorizationOptionProvidesAppNotificationSettings as an option in [PushNotificationManager pushManager].additionalAuthorizationOptions to add a button to inline notification settings view and the notification settings view in Settings.
153
- The notification will be nil when opened from Settings.
154
-
155
- @param pushManager PushNotificationManager instance
156
- @param notification Source notification
157
- */
158
- - (void)pushManager:(PushNotificationManager *)pushManager openSettingsForNotification:(UNNotification *)notification __IOS_AVAILABLE(12.0);
159
-
160
- #endif
161
-
162
- @end
163
-
164
- /**
165
- `PWTags` class encapsulates the methods for creating tags parameters for sending them to the server.
166
- */
167
- @interface PWTags : NSObject
168
-
169
- /**
170
- Creates a dictionary for incrementing/decrementing a numeric tag on the server.
171
-
172
- Example:
173
- @code
174
- NSDictionary *tags = @{
175
- @"Alias" : aliasField.text,
176
- @"FavNumber" : @([favNumField.text intValue]),
177
- @"price": [PWTags incrementalTagWithInteger:5],
178
- };
179
-
180
- [[PushNotificationManager pushManager] setTags:tags];
181
- @endcode
182
-
183
- @param delta Difference that needs to be applied to the tag's counter.
184
-
185
- @return Dictionary, that needs to be sent as the value for the tag
186
- */
187
- + (NSDictionary *)incrementalTagWithInteger:(NSInteger)delta;
188
-
189
- /**
190
- Creates a dictionary for extending Tag’s values list with additional values
191
-
192
- Example:
193
-
194
- @code
195
- NSDictionary *tags = @{
196
- @"Alias" : aliasField.text,
197
- @"FavNumber" : @([favNumField.text intValue]),
198
- @"List" : [PWTags appendValuesToListTag:@[ @"Item1" ]]
199
- };
200
-
201
- [[PushNotificationManager pushManager] setTags:tags];
202
- @endcode
203
-
204
- @param array Array of values to be added to the tag.
205
-
206
- @return Dictionary to be sent as the value for the tag
207
- */
208
- + (NSDictionary *)appendValuesToListTag:(NSArray<NSString *> *)array;
209
-
210
- @end
211
-
212
- /**
213
- `PushNotificationManager` class offers access to the singleton-instance of the push manager responsible for registering the device with the APS servers, receiving and processing push notifications.
214
-
215
- Deprecated. Use Pushwoosh class instead.
216
- */
217
- @interface PushNotificationManager : NSObject {
218
- }
219
-
220
- /**
221
- Pushwoosh Application ID. Usually retrieved automatically from Info.plist parameter `Pushwoosh_APPID`
222
- */
223
- @property (nonatomic, copy, readonly) NSString *appCode;
224
-
225
- /**
226
- Application name. Usually retrieved automatically from Info.plist bundle name (CFBundleDisplayName). Could be used to override bundle name. In addition could be set in Info.plist as `Pushwoosh_APPNAME` parameter.
227
- */
228
- @property (nonatomic, copy, readonly) NSString *appName;
229
-
230
- /**
231
- `PushNotificationDelegate` protocol delegate that would receive the information about events for push notification manager such as registering with APS services, receiving push notifications or working with the received notification.
232
- Pushwoosh Runtime sets it to ApplicationDelegate by default
233
- */
234
- @property (nonatomic, weak) NSObject<PushNotificationDelegate> *delegate;
235
-
236
- #if TARGET_OS_IOS || TARGET_OS_WATCH
237
-
238
- /**
239
- Show push notifications alert when push notification is received while the app is running, default is `YES`
240
- */
241
- @property (nonatomic, assign) BOOL showPushnotificationAlert;
242
-
243
- /**
244
- Authorization options in addition to UNAuthorizationOptionBadge | UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionCarPlay.
245
- */
246
- @property (nonatomic) UNAuthorizationOptions additionalAuthorizationOptions __IOS_AVAILABLE(12.0);
247
-
248
- #endif
249
-
250
- /**
251
- Returns push notification payload if the app was started in response to push notification or null otherwise
252
- */
253
- @property (nonatomic, copy, readonly) NSDictionary *launchNotification;
254
-
255
- #if TARGET_OS_IOS || TARGET_OS_WATCH
256
-
257
- /**
258
- Returns UNUserNotificationCenterDelegate that handles foreground push notifications on iOS10
259
- */
260
- @property (nonatomic, strong, readonly) id<UNUserNotificationCenterDelegate> notificationCenterDelegate;
261
-
262
- #elif TARGET_OS_OSX
263
-
264
- @property (nonatomic, strong, readonly) id<NSUserNotificationCenterDelegate> notificationCenterDelegate;
265
-
266
- #endif
267
-
268
- /**
269
- Set custom application language. Must be a lowercase two-letter code according to ISO-639-1 standard ("en", "de", "fr", etc.).
270
- Device language used by default.
271
- Set to nil if you want to use device language again.
272
- */
273
- @property (nonatomic) NSString *language;
274
-
275
- /**
276
- Initializes PushNotificationManager. Usually called by Pushwoosh Runtime internally.
277
- @param appCode Pushwoosh App ID.
278
- @param appName Application name.
279
- */
280
- + (void)initializeWithAppCode:(NSString *)appCode appName:(NSString *)appName;
281
-
282
- /**
283
- Returns an object representing the current push manager.
284
-
285
- @return A singleton object that represents the push manager.
286
- */
287
- + (PushNotificationManager *)pushManager;
288
-
289
- /**
290
- Registers for push notifications. By default registeres for "UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert" flags.
291
- Automatically detects if you have "newsstand-content" in "UIBackgroundModes" and adds "UIRemoteNotificationTypeNewsstandContentAvailability" flag.
292
- */
293
- - (void)registerForPushNotifications;
294
-
295
- /**
296
- Unregisters from push notifications.
297
- */
298
- - (void)unregisterForPushNotificationsWithCompletion:(void (^)(NSError *error))completion;
299
-
300
- /**
301
- Deprecated. Use unregisterForPushNotificationsWithCompletion: method instead
302
- */
303
- - (void)unregisterForPushNotifications __attribute__((deprecated));
304
-
305
- /**
306
- Deprecated. Use initializeWithAppCode:appName: method instead
307
- */
308
- - (instancetype)initWithApplicationCode:(NSString *)appCode appName:(NSString *)appName __attribute__((deprecated));
309
-
310
- #if TARGET_OS_IOS
311
-
312
- /**
313
- Deprecated. Use initializeWithAppCode:appName: method instead
314
- */
315
- - (id)initWithApplicationCode:(NSString *)appCode navController:(UIViewController *)navController appName:(NSString *)appName __attribute__((deprecated));
316
-
317
- /**
318
- Start location tracking.
319
-
320
- Deprecated. Use PushwooshGeozones framework.
321
- */
322
- - (void)startLocationTracking __attribute__((deprecated("Use PushwooshGeozones framework")));
323
-
324
- /**
325
- Stops location tracking
326
-
327
- Deprecated. Use PushwooshGeozones framework.
328
- */
329
- - (void)stopLocationTracking __attribute__((deprecated("Use PushwooshGeozones framework")));
330
-
331
- /**
332
- Explicitly sends geolocation to the server for GeoFencing push technology. Also called internally, please use `startLocationTracking` and `stopLocationTracking` functions.
333
-
334
- @param location Location to be sent.
335
-
336
- Deprecated. Use PushwooshGeozones framework.
337
- */
338
- - (void)sendLocation:(CLLocation *)location __attribute__((deprecated("Use PushwooshGeozones framework")));
339
-
340
- #endif
341
-
342
- /**
343
- Send tags to server. Tag names have to be created in the Pushwoosh Control Panel. Possible tag types: Integer, String, Incremental (integer only), List tags (array of values).
344
-
345
- Example:
346
- @code
347
- NSDictionary *tags = @{ @"Alias" : aliasField.text,
348
- @"FavNumber" : @([favNumField.text intValue]),
349
- @"price" : [PWTags incrementalTagWithInteger:5],
350
- @"List" : @[ @"Item1", @"Item2", @"Item3" ]
351
- };
352
-
353
- [[PushNotificationManager pushManager] setTags:tags];
354
- @endcode
355
-
356
- @param tags Dictionary representation of tags to send.
357
- */
358
- - (void)setTags:(NSDictionary *)tags;
359
-
360
- /**
361
- Send tags to server with completion block. If setTags succeeds competion is called with nil argument. If setTags fails completion is called with error.
362
- */
363
- - (void)setTags:(NSDictionary *)tags withCompletion:(void (^)(NSError *error))completion;
364
-
365
- /**
366
- Get tags from the server. Calls delegate method `onTagsReceived:` or `onTagsFailedToReceive:` depending on the results.
367
- */
368
- - (void)loadTags;
369
-
370
- /**
371
- Get tags from server. Calls delegate method if exists and handler (block).
372
-
373
- @param successHandler The block is executed on the successful completion of the request. This block has no return value and takes one argument: the dictionary representation of the recieved tags.
374
- Example of the dictionary representation of the received tags:
375
- {
376
- Country = ru;
377
- Language = ru;
378
- }
379
- @param errorHandler The block is executed on the unsuccessful completion of the request. This block has no return value and takes one argument: the error that occurred during the request.
380
- */
381
- - (void)loadTags:(PushwooshGetTagsHandler)successHandler error:(PushwooshErrorHandler)errorHandler;
382
-
383
- /**
384
- Informs the Pushwoosh about the app being launched. Usually called internally by SDK Runtime.
385
- */
386
- - (void)sendAppOpen;
387
-
388
- + (NSString *)pushwooshVersion;
389
-
390
- #if TARGET_OS_IOS
391
- /**
392
- Sends in-app purchases to Pushwoosh. Use in paymentQueue:updatedTransactions: payment queue method (see example).
393
-
394
- Example:
395
- @code
396
- - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
397
- [[PushNotificationManager pushManager] sendSKPaymentTransactions:transactions];
398
- }
399
- @endcode
400
-
401
- @param transactions Array of SKPaymentTransaction items as received in the payment queue.
402
- */
403
- - (void)sendSKPaymentTransactions:(NSArray *)transactions;
404
-
405
-
406
- /**
407
- Tracks individual in-app purchase. See recommended `sendSKPaymentTransactions:` method.
408
-
409
- @param productIdentifier purchased product ID
410
- @param price price for the product
411
- @param currencyCode currency of the price (ex: @"USD")
412
- @param date time of the purchase (ex: [NSDate now])
413
- */
414
- - (void)sendPurchase:(NSString *)productIdentifier withPrice:(NSDecimalNumber *)price currencyCode:(NSString *)currencyCode andDate:(NSDate *)date;
415
-
416
- #endif
417
- /**
418
- Gets current push token.
419
-
420
- @return Current push token. May be nil if no push token is available yet.
421
- */
422
- - (NSString *)getPushToken;
423
-
424
- /**
425
- Gets HWID. Unique device identifier that used in all API calls with Pushwoosh.
426
- This is identifierForVendor for iOS >= 7.
427
-
428
- @return Unique device identifier.
429
- */
430
- - (NSString *)getHWID;
431
-
432
- - (void)handlePushRegistration:(NSData *)devToken;
433
- - (void)handlePushRegistrationString:(NSString *)deviceID;
434
-
435
- - (void)handlePushRegistrationFailure:(NSError *)error;
436
-
437
- //If the push is received while the app is running. Call it only for iOS version < 10. For iOS 10 and higher use notificationCenterDelegate.
438
- - (BOOL)handlePushReceived:(NSDictionary *)userInfo;
439
-
440
- /**
441
- Gets APN payload from push notifications dictionary.
442
-
443
- Example:
444
- @code
445
- - (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart {
446
- NSDictionary * apnPayload = [[PushNotificationsManager pushManager] getApnPayload:pushNotification];
447
- NSLog(@"%@", apnPayload);
448
- }
449
- @endcode
450
-
451
- For Push dictionary sample:
452
- @code
453
- {
454
- aps = {
455
- alert = "Some text.";
456
- sound = default;
457
- };
458
- p = 1pb;
459
- }
460
- @endcode
461
-
462
- Result is:
463
- @code
464
- {
465
- alert = "Some text.";
466
- sound = default;
467
- };
468
- @endcode
469
- @param pushNotification Push notifications dictionary as received in `onPushAccepted: withNotification: onStart:`
470
- */
471
- - (NSDictionary *)getApnPayload:(NSDictionary *)pushNotification;
472
-
473
- /**
474
- Gets custom JSON string data from push notifications dictionary as specified in Pushwoosh Control Panel.
475
-
476
- Example:
477
- @code
478
- - (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart {
479
- NSString * customData = [[PushNotificationsManager pushManager] getCustomPushData:pushNotification];
480
- NSLog(@"%@", customData);
481
- }
482
- @endcode
483
-
484
- @param pushNotification Push notifications dictionary as received in `onPushAccepted: withNotification: onStart:`
485
- */
486
- - (NSString *)getCustomPushData:(NSDictionary *)pushNotification;
487
-
488
- /**
489
- The same as getCustomPushData but returns NSDictionary rather than JSON string (converts JSON string into NSDictionary).
490
- */
491
- - (NSDictionary *)getCustomPushDataAsNSDict:(NSDictionary *)pushNotification;
492
-
493
- /**
494
- Returns dictionary with enabled remove notificaton types.
495
-
496
- Example enabled push:
497
- @code
498
- {
499
- enabled = 1;
500
- pushAlert = 1;
501
- pushBadge = 1;
502
- pushSound = 1;
503
- type = 7;
504
- }
505
- @endcode
506
- where "type" field is UIUserNotificationType
507
-
508
- Disabled push:
509
- @code
510
- {
511
- enabled = 1;
512
- pushAlert = 0;
513
- pushBadge = 0;
514
- pushSound = 0;
515
- type = 0;
516
- }
517
- @endcode
518
-
519
- Note: In the latter example "enabled" field means that device can receive push notification but could not display alerts (ex: silent push)
520
- */
521
- + (NSMutableDictionary *)getRemoteNotificationStatus;
522
-
523
- /**
524
- Clears the notifications from the notification center.
525
- */
526
- + (void)clearNotificationCenter;
527
-
528
- /**
529
- Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
530
- This allows data and events to be matched across multiple user devices.
531
-
532
- Deprecated. Use PWInAppManager setUserId method instead
533
- */
534
- - (void)setUserId:(NSString *)userId __attribute__ ((deprecated));;
535
-
536
- /**
537
- Move all events from oldUserId to newUserId if doMerge is true. If doMerge is false all events for oldUserId are removed.
538
-
539
- @param oldUserId source user
540
- @param newUserId destination user
541
- @param doMerge if false all events for oldUserId are removed, if true all events for oldUserId are moved to newUserId
542
- @param completion callback
543
-
544
- Deprecated. Use PWInAppManager mergeUserId method instead
545
- */
546
- - (void)mergeUserId:(NSString *)oldUserId to:(NSString *)newUserId doMerge:(BOOL)doMerge completion:(void (^)(NSError *error))completion __attribute__ ((deprecated));
547
-
548
- /**
549
- Post events for In-App Messages. This can trigger In-App message display as specified in Pushwoosh Control Panel.
550
-
551
- Example:
552
- @code
553
- [[PushNotificationManager pushManager] setUserId:@"96da2f590cd7246bbde0051047b0d6f7"];
554
- [[PushNotificationManager pushManager] postEvent:@"buttonPressed" withAttributes:@{ @"buttonNumber" : @"4", @"buttonLabel" : @"Banner" } completion:nil];
555
- @endcode
556
-
557
- @param event name of the event
558
- @param attributes NSDictionary of event attributes
559
- @param completion function to call after posting event
560
-
561
- Deprecated. Use PWInAppManager postEvent method instead
562
- */
563
- - (void)postEvent:(NSString *)event withAttributes:(NSDictionary *)attributes completion:(void (^)(NSError *error))completion __attribute__ ((deprecated));
564
-
565
- /**
566
- See `postEvent:withAttributes:completion:`
567
-
568
- Deprecated. Use PWInAppManager postEvent method instead
569
- */
570
- - (void)postEvent:(NSString *)event withAttributes:(NSDictionary *)attributes __attribute__ ((deprecated));
571
-
572
- + (BOOL)isPushwooshMessage:(NSDictionary *)userInfo;
573
-
574
- @end