Skip to content

Commit

Permalink
Pushwoosh Cordova Plugin 7.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins CI committed Sep 26, 2019
1 parent 441765e commit 54558a3
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 87 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ Cross-Platform push notifications by Pushwoosh for Cordova / PhoneGap
Using npm (requires cordova 7.0+):

```
cordova plugin add pushwoosh-cordova-plugin@7.18.1
cordova plugin add pushwoosh-cordova-plugin@7.18.2
```

Using git:

```
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#7.18.1
cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-plugin.git#7.18.2
```

#### Phonegap

Using npm (requires phonegap 7.1+):

```
cordova plugin add pushwoosh-cordova-plugin@7.18.1
cordova plugin add pushwoosh-cordova-plugin@7.18.2
```

### Guide
Expand Down
2 changes: 1 addition & 1 deletion README_PGB.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Cross-Platform push notifications by Pushwoosh for PhoneGap
Using npm (requires cordova 5.0+):

```
cordova plugin add pushwoosh-pgb-plugin@7.18.1
cordova plugin add pushwoosh-pgb-plugin@7.18.2
```

### Guide
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pushwoosh-cordova-plugin",
"version": "7.18.1",
"version": "7.18.2",
"description": "\n This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).\n ",
"cordova": {
"id": "pushwoosh-cordova-plugin",
Expand Down
12 changes: 6 additions & 6 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pushwoosh-cordova-plugin" version="7.18.1">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pushwoosh-cordova-plugin" version="7.18.2">

<name>Pushwoosh</name>

Expand Down Expand Up @@ -65,11 +65,11 @@
<framework src="com.android.support.constraint:constraint-layout:1.0.2" />
<framework src="com.github.bumptech.glide:glide:4.7.1" />
<framework src="org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60" />
<framework src="com.pushwoosh:pushwoosh:5.18.2"/>
<framework src="com.pushwoosh:pushwoosh-amazon:5.18.2"/>
<framework src="com.pushwoosh:pushwoosh-badge:5.18.2"/>
<framework src="com.pushwoosh:pushwoosh-inbox:5.18.2"/>
<framework src="com.pushwoosh:pushwoosh-inbox-ui:5.18.2"/>
<framework src="com.pushwoosh:pushwoosh:5.19.0"/>
<framework src="com.pushwoosh:pushwoosh-amazon:5.19.0"/>
<framework src="com.pushwoosh:pushwoosh-badge:5.19.0"/>
<framework src="com.pushwoosh:pushwoosh-inbox:5.19.0"/>
<framework src="com.pushwoosh:pushwoosh-inbox-ui:5.19.0"/>
</platform>

<!-- ios -->
Expand Down
13 changes: 8 additions & 5 deletions src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
Example:
```ObjC
Objective-C:
@code
@implementation JavaScriptInterface
- (void)nativeCall:(NSString*)str :(PWJavaScriptCallback*)callback {
Expand All @@ -26,13 +27,14 @@
...
[[PWInAppManager sharedManager] addJavascriptInterface:[JavaScriptInterface new] withName:@"ObjC"];
```
@endcode
```javascript
JavaScript:
@code
ObjC.nativeCall("exampleString", function(str) {
console.log(str);
});
```
@endcode
*/
@protocol PWJavaScriptInterface

Expand Down Expand Up @@ -112,9 +114,10 @@
Post events for In-App Messages. This can trigger In-App message display as specified in Pushwoosh Control Panel.
Example:
@code
[[PWInAppManager sharedManager] setUserId:@"96da2f590cd7246bbde0051047b0d6f7"];
[[PWInAppManager sharedManager] postEvent:@"buttonPressed" withAttributes:@{ @"buttonNumber" : @"4", @"buttonLabel" : @"Banner" } completion:nil];
@endcode
@param event name of the event
@param attributes NSDictionary of event attributes
Expand Down
13 changes: 13 additions & 0 deletions src/ios/Pushwoosh.framework/Versions/A/Headers/PWInlineInAppView.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@

#import <UIKit/UIKit.h>

@class PWInlineInAppView;

@protocol PWInlineInAppViewDelegate <NSObject>

@optional
- (void)inlineInAppDidLoadInView:(PWInlineInAppView *)inAppView;
- (void)didCloseInlineInAppView:(PWInlineInAppView *)inAppView;
- (void)didChangeSizeOfInlineInAppView:(PWInlineInAppView *)inAppView;

@end

@interface PWInlineInAppView : UIView

@property (nonatomic) IBInspectable NSString *identifier;

@property (nonatomic, weak) id <PWInlineInAppViewDelegate> delegate;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ NS_ASSUME_NONNULL_BEGIN
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.
Example:
@code
- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
self.contentHandler = contentHandler;
self.bestAttemptContent = [request.content mutableCopy];
[[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request contentHandler:contentHandler];
self.contentHandler = contentHandler;
self.bestAttemptContent = [request.content mutableCopy];
[[PWNotificationExtensionManager sharedManager] handleNotificationRequest:request contentHandler:contentHandler];
}
@endcode
*/
- (void)handleNotificationRequest:(UNNotificationRequest *)request contentHandler:(void (^)(UNNotificationContent *))contentHandler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ FOUNDATION_EXPORT NSTimeInterval const PWRichMediaStyleDefaultAnimationDuration;
Built-in Rich Media presenting animations.
Example:
@code
style.animationDelegate = [PWRichMediaStyleSlideLeftAnimation new];
@endcode
*/
@interface PWRichMediaStyleSlideLeftAnimation : NSObject <PWRichMediaStyleAnimationDelegate>
@end
Expand Down Expand Up @@ -81,11 +81,11 @@ typedef PWLoadingView *(^PWRichMediaLoadingViewBlock)(void);
Block to customize Rich Media loading view.
Example:
@code
style.loadingViewBlock = ^PWLoadingView *{
return [[[NSBundle mainBundle] loadNibNamed:@"LoadingView" owner:self options:nil] lastObject];
};
@endcode
*/
@property (nonatomic) PWRichMediaLoadingViewBlock loadingViewBlock;

Expand Down
Loading

0 comments on commit 54558a3

Please sign in to comment.