pushwoosh-cordova-plugin 6.0.1 → 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.
- package/{MIT-LICENSE.txt → LICENSE.md} +0 -0
- package/README.md +20 -32
- package/README_PGB.md +32 -0
- package/package.json +1 -1
- package/package_pgb.json +29 -0
- package/plugin.xml +71 -82
- package/src/android/src/com/pushwoosh/plugin/internal/PhonegapPluginProvider.java +22 -0
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/CustomFirebaseMessagingService.java +29 -0
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/InboxUiStyleManager.java +136 -0
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java +365 -387
- package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushwooshNotificationServiceExtension.java +38 -0
- package/src/ios/PWBackward.h +25 -0
- package/src/ios/PWBackward.m +53 -0
- package/src/ios/PushNotification.m +409 -147
- package/src/ios/Pushwoosh.framework/Modules/module.modulemap +6 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWAppDelegate.h +20 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWGDPRManager.h +46 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h +174 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInbox.h +147 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWInlineInAppView.h +26 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWLog.h +23 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWMessaging.h +20 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWNotificationExtensionManager.h +33 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaManager.h +118 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PWRichMediaStyle.h +122 -0
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/PushNotificationManager.h +263 -151
- package/src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h +525 -0
- package/src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/errorMessage@2x.png +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/inbox_icon.png +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/noMessage@2x.png +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/unread.png +0 -0
- package/src/ios/PushwooshInboxUI.framework/Modules/module.modulemap +6 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxStyle.h +122 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PWIInboxUI.h +39 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/Headers/PushwooshInboxUI.h +19 -0
- package/src/ios/PushwooshInboxUI.framework/Versions/A/libPushwooshInboxUI.a +0 -0
- package/src/windows/PushSDK/Newtonsoft.Json.dll +0 -0
- package/src/windows/PushSDK/PushSDK.winmd +0 -0
- package/src/windows/PushwooshPluginProxy.js +88 -74
- package/src/wp8/PushNotification.cs +14 -0
- package/src/wp8/PushSDK/PushSDK.dll +0 -0
- package/www/PushNotification.js +179 -45
- package/Documentation/files/PushNotification-js.html +0 -157
- package/Documentation/index/Classes.html +0 -33
- package/Documentation/index/Functions.html +0 -61
- package/Documentation/index/General.html +0 -65
- package/Documentation/index.html +0 -1
- package/Documentation/javascript/main.js +0 -841
- package/Documentation/javascript/prettify.js +0 -1526
- package/Documentation/javascript/searchdata.js +0 -92
- package/Documentation/search/ClassesP.html +0 -20
- package/Documentation/search/FunctionsA.html +0 -20
- package/Documentation/search/FunctionsC.html +0 -20
- package/Documentation/search/FunctionsG.html +0 -20
- package/Documentation/search/FunctionsO.html +0 -20
- package/Documentation/search/FunctionsP.html +0 -20
- package/Documentation/search/FunctionsR.html +0 -20
- package/Documentation/search/FunctionsS.html +0 -20
- package/Documentation/search/FunctionsU.html +0 -20
- package/Documentation/search/GeneralA.html +0 -20
- package/Documentation/search/GeneralC.html +0 -20
- package/Documentation/search/GeneralF.html +0 -20
- package/Documentation/search/GeneralG.html +0 -20
- package/Documentation/search/GeneralO.html +0 -20
- package/Documentation/search/GeneralP.html +0 -20
- package/Documentation/search/GeneralR.html +0 -20
- package/Documentation/search/GeneralS.html +0 -20
- package/Documentation/search/GeneralU.html +0 -20
- package/Documentation/search/NoResults.html +0 -15
- package/Documentation/styles/main.css +0 -828
- package/VERSION.md +0 -132
- package/push.gradle +0 -21
- 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
|
+
|