Skip to content

Commit

Permalink
Pushwoosh Cordova Plugin 8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins CI committed Mar 24, 2021
1 parent b4a7ca7 commit bb1eacc
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 13 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@8.0.0
cordova plugin add pushwoosh-cordova-plugin@8.1.0
```

Using git:

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

#### Phonegap

Using npm (requires phonegap 7.1+):

```
cordova plugin add pushwoosh-cordova-plugin@8.0.0
cordova plugin add pushwoosh-cordova-plugin@8.1.0
```

### 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@8.0.0
cordova plugin add pushwoosh-pgb-plugin@8.1.0
```

### 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": "8.0.0",
"version": "8.1.0",
"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
14 changes: 7 additions & 7 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="8.0.0">
<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.1.0">

<name>Pushwoosh</name>

Expand Down Expand Up @@ -65,12 +65,12 @@
<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:6.0.5"/>
<framework src="com.pushwoosh:pushwoosh-amazon:6.0.5"/>
<framework src="com.pushwoosh:pushwoosh-firebase:6.0.5"/>
<framework src="com.pushwoosh:pushwoosh-badge:6.0.5"/>
<framework src="com.pushwoosh:pushwoosh-inbox:6.0.5"/>
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.0.5"/>
<framework src="com.pushwoosh:pushwoosh:6.2.4"/>
<framework src="com.pushwoosh:pushwoosh-amazon:6.2.4"/>
<framework src="com.pushwoosh:pushwoosh-firebase:6.2.4"/>
<framework src="com.pushwoosh:pushwoosh-badge:6.2.4"/>
<framework src="com.pushwoosh:pushwoosh-inbox:6.2.4"/>
<framework src="com.pushwoosh:pushwoosh-inbox-ui:6.2.4"/>
</platform>

<!-- ios -->
Expand Down
29 changes: 29 additions & 0 deletions src/ios/Pushwoosh.framework/Versions/A/Headers/PWInAppManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,29 @@
*/
- (void)setUserId:(NSString *)userId;

/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
If setUser succeeds competion is called with nil argument. If setUser fails completion is called with error.
*/
- (void)setUserId:(NSString *)userId completion:(void(^)(NSError * error))completion;

/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
@param userId user identifier
@param emails user's emails array
*/
- (void)setUser:(NSString *)userId emails:(NSArray *)emails completion:(void(^)(NSError * error))completion;

/**
Register emails list associated to the current user.
@param emails user's emails array
*/
- (void)setEmails:(NSArray *)emails completion:(void(^)(NSError * error))completion;

/**
Move all events from oldUserId to newUserId if doMerge is true. If doMerge is false all events for oldUserId are removed.
Expand Down Expand Up @@ -140,6 +163,12 @@
*/
- (void)addJavascriptInterface:(NSObject<PWJavaScriptInterface>*)interface withName:(NSString*)name;

/**
Updates In-App messages storage on a device
*/

- (void)reloadInAppsWithCompletion: (void (^)(NSError *error))completion;

#endif

@end
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ typedef void (^PushwooshErrorHandler)(NSError *error);
*/
- (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification DEPRECATED_ATTRIBUTE;

/**
Tells the delegate that a custom action was triggered when opening a notification.
@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
@param notification NSDictionary with push payload.
*/
- (void)onActionIdentifierReceived:(NSString *)identifier withNotification:(NSDictionary *)notification;

/**
Tells the delegate that the user has pressed on the push notification banner.
Expand Down
86 changes: 85 additions & 1 deletion src/ios/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#endif


#define PUSHWOOSH_VERSION @"6.0.6"
#define PUSHWOOSH_VERSION @"6.1.1"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -238,6 +238,10 @@ Unregisters from push notifications.
*/
- (void)setTags:(NSDictionary *)tags completion:(void (^)(NSError *error))completion;

- (void)setEmailTags:(NSDictionary *)tags forEmail:(NSString *)email;

- (void)setEmailTags:(NSDictionary *)tags forEmail:(NSString *)email completion:(void(^)(NSError *error))completion;

/**
Get tags from server. Calls delegate method if exists and handler (block).
Expand Down Expand Up @@ -343,9 +347,89 @@ Unregisters from push notifications.
/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
If setUserId succeeds competion is called with nil argument. If setUserId fails completion is called with error.
@param userId user identifier
*/
- (void)setUserId:(NSString *)userId completion:(void(^)(NSError * error))completion;

/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
@param userId user identifier
*/
- (void)setUserId:(NSString *)userId;

/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
If setUser succeeds competion is called with nil argument. If setUser fails completion is called with error.
@param userId user identifier
@param emails user's emails array
*/
- (void)setUser:(NSString *)userId emails:(NSArray *)emails completion:(void(^)(NSError * error))completion;


/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
@param userId user identifier
@param emails user's emails array
*/
- (void)setUser:(NSString *)userId emails:(NSArray *)emails;

/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
If setUser succeeds competion is called with nil argument. If setUser fails completion is called with error.
@param userId user identifier
@param email user's email string
*/
- (void)setUser:(NSString *)userId email:(NSString *)email completion:(void(^)(NSError * error))completion;

/**
Set User indentifier. This could be Facebook ID, username or email, or any other user ID.
This allows data and events to be matched across multiple user devices.
@param userId user identifier
@param email user's email string
*/
- (void)setUser:(NSString *)userId email:(NSString *)email;

/**
Register emails list associated to the current user.
If setEmails succeeds competion is called with nil argument. If setEmails fails completion is called with error.
@param emails user's emails array
*/
- (void)setEmails:(NSArray *)emails completion:(void(^)(NSError * error))completion;

/**
Register emails list associated to the current user.
@param emails user's emails array
*/
- (void)setEmails:(NSArray *)emails;

/**
Register email associated to the current user. Email should be a string and could not be null or empty.
If setEmail succeeds competion is called with nil argument. If setEmail fails completion is called with error.
@param email user's email string
*/
- (void)setEmail:(NSString *)email completion:(void(^)(NSError * error))completion;

/**
Register email associated to the current user. Email should be a string and could not be null or empty.
@param email user's email string
*/
- (void)setEmail:(NSString *)email;

/**
Move all events from oldUserId to newUserId if doMerge is true. If doMerge is false all events for oldUserId are removed.
Expand Down
Binary file modified src/ios/Pushwoosh.framework/Versions/A/libPushwoosh.a
Binary file not shown.

0 comments on commit bb1eacc

Please sign in to comment.