pushwoosh-cordova-plugin 6.1.0 → 6.1.1

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 (79) hide show
  1. package/{MIT-LICENSE.txt → LICENSE.md} +0 -0
  2. package/README.md +20 -32
  3. package/README_PGB.md +32 -0
  4. package/package.json +1 -1
  5. package/package_pgb.json +29 -0
  6. package/plugin.xml +71 -85
  7. package/src/android/src/com/pushwoosh/plugin/internal/PhonegapPluginProvider.java +22 -0
  8. package/src/android/src/com/pushwoosh/plugin/pushnotifications/CustomFirebaseMessagingService.java +29 -0
  9. package/src/android/src/com/pushwoosh/plugin/pushnotifications/InboxUiStyleManager.java +136 -0
  10. package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java +339 -388
  11. package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushwooshNotificationServiceExtension.java +38 -0
  12. package/src/ios/PWBackward.h +25 -0
  13. package/src/ios/PWBackward.m +53 -0
  14. package/src/ios/PushNotification.m +409 -158
  15. package/src/ios/Pushwoosh.framework/Modules/module.modulemap +6 -0
  16. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWAppDelegate.h +20 -0
  17. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWGDPRManager.h +46 -0
  18. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h +174 -0
  19. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInbox.h +147 -0
  20. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInlineInAppView.h +26 -0
  21. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWLog.h +23 -0
  22. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWMessaging.h +20 -0
  23. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h +33 -0
  24. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaManager.h +118 -0
  25. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaStyle.h +122 -0
  26. package/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h +263 -151
  27. package/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +525 -0
  28. package/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a +0 -0
  29. package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
  30. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
  31. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
  32. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
  33. package/src/ios/PushwooshInboxBundle.bundle/errorMessage@2x.png +0 -0
  34. package/src/ios/PushwooshInboxBundle.bundle/inbox_icon.png +0 -0
  35. package/src/ios/PushwooshInboxBundle.bundle/noMessage@2x.png +0 -0
  36. package/src/ios/PushwooshInboxBundle.bundle/unread.png +0 -0
  37. package/src/ios/PushwooshInboxUI.framework/Modules/module.modulemap +6 -0
  38. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxStyle.h +122 -0
  39. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxUI.h +39 -0
  40. package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PushwooshInboxUI.h +19 -0
  41. package/src/ios/PushwooshInboxUI.framework/Versions/A/libPushwooshInboxUI.a +0 -0
  42. package/src/windows/PushSDK/Newtonsoft.Json.dll +0 -0
  43. package/src/windows/PushSDK/PushSDK.winmd +0 -0
  44. package/src/windows/PushwooshPluginProxy.js +88 -74
  45. package/src/wp8/PushNotification.cs +14 -0
  46. package/src/wp8/PushSDK/PushSDK.dll +0 -0
  47. package/www/PushNotification.js +171 -45
  48. package/Documentation/files/PushNotification-js.html +0 -157
  49. package/Documentation/index/Classes.html +0 -33
  50. package/Documentation/index/Functions.html +0 -61
  51. package/Documentation/index/General.html +0 -65
  52. package/Documentation/index.html +0 -1
  53. package/Documentation/javascript/main.js +0 -841
  54. package/Documentation/javascript/prettify.js +0 -1526
  55. package/Documentation/javascript/searchdata.js +0 -92
  56. package/Documentation/search/ClassesP.html +0 -20
  57. package/Documentation/search/FunctionsA.html +0 -20
  58. package/Documentation/search/FunctionsC.html +0 -20
  59. package/Documentation/search/FunctionsG.html +0 -20
  60. package/Documentation/search/FunctionsO.html +0 -20
  61. package/Documentation/search/FunctionsP.html +0 -20
  62. package/Documentation/search/FunctionsR.html +0 -20
  63. package/Documentation/search/FunctionsS.html +0 -20
  64. package/Documentation/search/FunctionsU.html +0 -20
  65. package/Documentation/search/GeneralA.html +0 -20
  66. package/Documentation/search/GeneralC.html +0 -20
  67. package/Documentation/search/GeneralF.html +0 -20
  68. package/Documentation/search/GeneralG.html +0 -20
  69. package/Documentation/search/GeneralO.html +0 -20
  70. package/Documentation/search/GeneralP.html +0 -20
  71. package/Documentation/search/GeneralR.html +0 -20
  72. package/Documentation/search/GeneralS.html +0 -20
  73. package/Documentation/search/GeneralU.html +0 -20
  74. package/Documentation/search/NoResults.html +0 -15
  75. package/Documentation/styles/main.css +0 -828
  76. package/VERSION.md +0 -138
  77. package/push.gradle +0 -21
  78. package/src/android/src/com/pushwoosh/plugin/pushnotifications/NotificationFactory.java +0 -29
  79. package/src/ios/Pushwoosh.framework/Versions/A/Pushwoosh +0 -0
@@ -0,0 +1,122 @@
1
+ //
2
+ // PWRichMediaStyle.h
3
+ // Pushwoosh SDK
4
+ // (c) Pushwoosh 2018
5
+ //
6
+
7
+ #import <Foundation/Foundation.h>
8
+
9
+ #if TARGET_OS_IOS || TARGET_OS_WATCH
10
+ #import <UIKit/UIKit.h>
11
+ #endif
12
+
13
+ FOUNDATION_EXPORT NSTimeInterval const PWRichMediaStyleDefaultAnimationDuration;
14
+
15
+ /**
16
+ Interface for Rich Media Custom Animation.
17
+ */
18
+ @protocol PWRichMediaStyleAnimationDelegate <NSObject>
19
+
20
+ /**
21
+ This method can be used to animate Rich Media presenting view.
22
+ */
23
+ #if TARGET_OS_IOS || TARGET_OS_WATCH
24
+ - (void)runPresentingAnimationWithContentView:(UIView *)contentView parentView:(UIView *)parentView completion:(dispatch_block_t)completion;
25
+
26
+ /**
27
+ This method can be used to animate Rich Media dismissing view.
28
+ */
29
+ - (void)runDismissingAnimationWithContentView:(UIView *)contentView parentView:(UIView *)parentView completion:(dispatch_block_t)completion;
30
+ #endif
31
+ @end
32
+
33
+ /**
34
+ Built-in Rich Media presenting animations.
35
+
36
+ Example:
37
+ @code
38
+ style.animationDelegate = [PWRichMediaStyleSlideLeftAnimation new];
39
+ @endcode
40
+ */
41
+ @interface PWRichMediaStyleSlideLeftAnimation : NSObject <PWRichMediaStyleAnimationDelegate>
42
+ @end
43
+
44
+ @interface PWRichMediaStyleSlideRightAnimation : NSObject <PWRichMediaStyleAnimationDelegate>
45
+ @end
46
+
47
+ @interface PWRichMediaStyleSlideTopAnimation : NSObject <PWRichMediaStyleAnimationDelegate>
48
+ @end
49
+
50
+ @interface PWRichMediaStyleSlideBottomAnimation : NSObject <PWRichMediaStyleAnimationDelegate>
51
+ @end
52
+
53
+ @interface PWRichMediaStyleCrossFadeAnimation : NSObject <PWRichMediaStyleAnimationDelegate>
54
+ @end
55
+
56
+ /**
57
+ Custom Rich Media loading view. It is shown while Rich Media is loading.
58
+ */
59
+ #if TARGET_OS_IOS || TARGET_OS_WATCH
60
+ @interface PWLoadingView : UIView
61
+
62
+ @property (nonatomic) IBOutlet UIActivityIndicatorView *activityIndicatorView;
63
+ @property (nonatomic) IBOutlet UIButton *cancelLoadingButton;
64
+
65
+ @end
66
+
67
+ typedef PWLoadingView *(^PWRichMediaLoadingViewBlock)(void);
68
+ #endif
69
+ /**
70
+ 'PWRichMediaStyle' class allows customizing the appearance of Rich Media pages.
71
+ */
72
+ @interface PWRichMediaStyle : NSObject
73
+
74
+ /**
75
+ Background color of Rich Media pages.
76
+ */
77
+ #if TARGET_OS_IOS || TARGET_OS_WATCH
78
+ @property (nonatomic) UIColor *backgroundColor;
79
+ #elif TARGET_OS_OSX
80
+ @property (nonatomic) NSColor *backgroundColor;
81
+ #endif
82
+
83
+ /**
84
+ Delegate to manage Rich Media presenting animation.
85
+ */
86
+ @property (nonatomic) id<PWRichMediaStyleAnimationDelegate> animationDelegate;
87
+
88
+ /**
89
+ Block to customize Rich Media loading view.
90
+
91
+ Example:
92
+ @code
93
+ style.loadingViewBlock = ^PWLoadingView *{
94
+ return [[[NSBundle mainBundle] loadNibNamed:@"LoadingView" owner:self options:nil] lastObject];
95
+ };
96
+ @endcode
97
+ */
98
+ #if TARGET_OS_IOS
99
+ @property (nonatomic) PWRichMediaLoadingViewBlock loadingViewBlock;
100
+ #endif
101
+ /**
102
+ Delay of the close button presenting in seconds.
103
+ */
104
+ @property (nonatomic) NSTimeInterval closeButtonPresentingDelay;
105
+
106
+ /**
107
+ Should status bar to be hidden or not while Rich Media page is presented. Default is 'YES'.
108
+ */
109
+ @property (nonatomic) BOOL shouldHideStatusBar;
110
+
111
+ /**
112
+ A Boolean value that determines whether HTML5 videos play inline or use the native full-screen controller.
113
+ */
114
+ @property (nonatomic) NSNumber *allowsInlineMediaPlayback;
115
+
116
+ /**
117
+ A Boolean value that determines whether HTML5 videos can play automatically or require the user to start playing them.
118
+ */
119
+ @property (nonatomic) NSNumber *mediaPlaybackRequiresUserAction;
120
+
121
+ @end
122
+