Skip to content

Commit

Permalink
Pushwoosh iOS SDK 6.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PushwooshCI committed Aug 21, 2024
1 parent 9019d7a commit ed670e9
Show file tree
Hide file tree
Showing 36 changed files with 116 additions and 43 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ body:
label: Your Pushwoosh iOS SDK version
description: Your iOS SDK version which was integrated to the app. You may find it on the [releases page](https://github.com/Pushwoosh/pushwoosh-ios-sdk/releases)
options:
- 6.6.1
- 6.6.0
- 6.5.18
- 6.5.17
Expand Down
6 changes: 3 additions & 3 deletions Documentation/PWMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Message from Pushwoosh.

<table>
<tr>
<td><a href="#1a018d9ef3c615dedad1d73b2d5239b16a">@property NSString *_Nullable</a></td>
<td><a href="#1aecf83b72f600bc65ae4dbe7706a90cc6">@property NSString *_Nullable</a></td>
</tr>
<tr>
<td><a href="#1ab365d5ab62ebc13c91f231f3c2c9a570">@property NSUInteger badge</a></td>
Expand Down Expand Up @@ -34,8 +34,8 @@ Message from Pushwoosh.
----------


#### <a name="1a018d9ef3c615dedad1d73b2d5239b16a"></a>@property NSString \*_Nullable
Title of the push message.<br/>Subtitle of the push message.<br/>Body of the push message.<br/>Remote URL or deeplink from the push message.<br/>Original payload of the message.
#### <a name="1aecf83b72f600bc65ae4dbe7706a90cc6"></a>@property NSString \*_Nullable
Title of the push message.<br/>Subtitle of the push message.<br/>Body of the push message.<br/>Remote URL or deeplink from the push message.<br/>Returns actionIdentifier of the button pressed<br/>Original payload of the message.

----------

Expand Down
7 changes: 6 additions & 1 deletion Framework/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.6.0"
#define PUSHWOOSH_VERSION @"6.6.1"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -163,6 +163,11 @@ Tells the delegate that the user has pressed on the push notification banner.
*/
@property (nonatomic, readonly) NSDictionary * _Nullable payload;

/**
Returns actionIdentifier of the button pressed
*/
@property (nonatomic, readonly) NSString * _Nullable actionIdentifier;

/**
Returns YES if this message is recieved from Pushwoosh.
*/
Expand Down
Binary file modified Framework/Pushwoosh.framework/Versions/A/Pushwoosh
Binary file not shown.
Binary file not shown.
20 changes: 13 additions & 7 deletions XCFramework/Pushwoosh.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>Pushwoosh.framework/Pushwoosh</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>Pushwoosh.framework/Versions/A/Pushwoosh</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -32,19 +33,24 @@
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>Pushwoosh.framework/Pushwoosh</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.6.0"
#define PUSHWOOSH_VERSION @"6.6.1"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -163,6 +163,11 @@ Tells the delegate that the user has pressed on the push notification banner.
*/
@property (nonatomic, readonly) NSDictionary * _Nullable payload;

/**
Returns actionIdentifier of the button pressed
*/
@property (nonatomic, readonly) NSString * _Nullable actionIdentifier;

/**
Returns YES if this message is recieved from Pushwoosh.
*/
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.6.0"
#define PUSHWOOSH_VERSION @"6.6.1"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -163,6 +163,11 @@ Tells the delegate that the user has pressed on the push notification banner.
*/
@property (nonatomic, readonly) NSDictionary * _Nullable payload;

/**
Returns actionIdentifier of the button pressed
*/
@property (nonatomic, readonly) NSString * _Nullable actionIdentifier;

/**
Returns YES if this message is recieved from Pushwoosh.
*/
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>20E238</string>
<string>21F77</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>13.3</string>
<string>14.5</string>
<key>DTSDKBuild</key>
<string>22E245</string>
<string>23F73</string>
<key>DTSDKName</key>
<string>macosx13.3</string>
<string>macosx14.5</string>
<key>DTXcode</key>
<string>1431</string>
<string>1540</string>
<key>DTXcodeBuild</key>
<string>14E300c</string>
<string>15F31d</string>
<key>LSMinimumSystemVersion</key>
<string>10.15</string>
<key>NSHumanReadableCopyright</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.6.0"
#define PUSHWOOSH_VERSION @"6.6.1"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -163,6 +163,11 @@ Tells the delegate that the user has pressed on the push notification banner.
*/
@property (nonatomic, readonly) NSDictionary * _Nullable payload;

/**
Returns actionIdentifier of the button pressed
*/
@property (nonatomic, readonly) NSString * _Nullable actionIdentifier;

/**
Returns YES if this message is recieved from Pushwoosh.
*/
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
</data>
<key>Headers/Pushwoosh.h</key>
<data>
/ayVDnWKie4Mq1uH++iGFMqetb8=
/51HhiNdIZNuURT/2HynRYQWJ9w=
</data>
<key>Info.plist</key>
<data>
e7HqRyXrXq2tm66m1acsEvSdPhk=
IH5hSx32BvorgVq6z9Pb62Sodq4=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -148,7 +148,7 @@
<dict>
<key>hash2</key>
<data>
Y5I65Yoz8de1LR9h3QxXs3S1Ns3Jun3w/AjV+sR0d34=
9N+qg8fIPmL/51yJ6xLDO+OSb4XlfVt4H9h3oZ42d2U=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
14 changes: 10 additions & 4 deletions XCFramework/PushwooshGeozones.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>PushwooshGeozones.framework/PushwooshGeozones</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>PushwooshGeozones.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -17,9 +19,11 @@
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>PushwooshGeozones.framework/PushwooshGeozones</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
Expand All @@ -32,8 +36,10 @@
<string>ios</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>PushwooshGeozones.framework/Versions/A/PushwooshGeozones</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>PushwooshGeozones.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -44,7 +50,7 @@
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>maccatalyst</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework module PushwooshGeozones {
umbrella header "PushwooshGeozones.h"

export *

module * { export * }
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework module PushwooshGeozones {
umbrella header "PushwooshGeozones.h"

export *

module * { export * }
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>20E238</string>
<string>21F77</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>13.3</string>
<string>14.5</string>
<key>DTSDKBuild</key>
<string>22E245</string>
<string>23F73</string>
<key>DTSDKName</key>
<string>macosx13.3</string>
<string>macosx14.5</string>
<key>DTXcode</key>
<string>1431</string>
<string>1540</string>
<key>DTXcodeBuild</key>
<string>14E300c</string>
<string>15F31d</string>
<key>LSMinimumSystemVersion</key>
<string>10.15</string>
<key>UIDeviceFamily</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework module PushwooshGeozones {
umbrella header "PushwooshGeozones.h"

export *

module * { export * }
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
</data>
<key>Info.plist</key>
<data>
hTbVaQvUWxjLTDHCEo6jlngb240=
MdeizxL9oSRbskugVm5cEbYjPpk=
</data>
<key>Modules/module.modulemap</key>
<data>
/ACPUYDIR/BULrYc3zbw0Xasik0=
WGgnjYaMD7RVgM5Z0j+uYbZGBeg=
</data>
<key>PrivacyInfo.xcprivacy</key>
<data>
Expand All @@ -45,7 +45,7 @@
<dict>
<key>hash2</key>
<data>
h/JEPr+rNjZNHNMq8/b4KM0WE0p97WhuB2cRWF46FEw=
fXYRoysMB/+jZDoR/xYfO8t7PEz2g1i+njiO7YtLu90=
</data>
</dict>
<key>PrivacyInfo.xcprivacy</key>
Expand Down
2 changes: 1 addition & 1 deletion iOS_SDK/Pushwoosh/Pushwoosh.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Pod::Spec.new do |s|

s.name = "Pushwoosh"
s.version = "6.6.0"
s.version = "6.6.1"
s.summary = "Push notifications library by Pushwoosh."
s.platform = :ios

Expand Down
8 changes: 8 additions & 0 deletions iOS_SDK/Pushwoosh/Pushwoosh/Configuration/PWConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
*/
@property (nonatomic, copy, readonly) NSString *appId;

/**
key: PW_API_TOKEN
type: string
value: Sets the Pushwoosh API auth token
*/

@property (nonatomic, copy, readonly) NSString *apiToken;

/**
key: Pushwoosh_APPID_Dev
type: string
Expand Down
3 changes: 3 additions & 0 deletions iOS_SDK/Pushwoosh/Pushwoosh/Configuration/PWConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@interface PWConfig ()

@property (nonatomic, copy, readwrite) NSString *appId;
@property (nonatomic, copy, readwrite) NSString *apiToken;
@property (nonatomic, copy, readwrite) NSString *appIdDev;
@property (nonatomic, copy, readwrite) NSString *appName;
@property (nonatomic, copy, readwrite) NSString *appGroupsName;
Expand Down Expand Up @@ -37,6 +38,8 @@ - (instancetype)initWithBundle:(NSBundle *)bundle {
_bundle = bundle;

self.appId = [bundle objectForInfoDictionaryKey:@"Pushwoosh_APPID"];

self.apiToken = [bundle objectForInfoDictionaryKey:@"PW_API_TOKEN"];

self.appIdDev = [bundle objectForInfoDictionaryKey:@"Pushwoosh_APPID_Dev"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,16 @@ - (NSMutableURLRequest *)prepareRequest:(NSString *)requestUrl jsonRequestData:(
NSMutableURLRequest *urlRequest = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:requestUrl]];
[urlRequest setHTTPMethod:@"POST"];
[urlRequest addValue:@"application/json; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[urlRequest addValue:[NSString stringWithFormat:@"Token %@", [self getApiToken]] forHTTPHeaderField:@"Authorization"];
[urlRequest setHTTPBody:[jsonRequestData dataUsingEncoding:NSUTF8StringEncoding]];

return urlRequest;
}

- (NSString *)getApiToken {
return [[PWConfig config] apiToken];
}

- (void)processResponse:(NSHTTPURLResponse *)httpResponse responseData:(NSData *)responseData request:(PWRequest *)request url:(NSString *)requestUrl requestData:(NSString *)requestData error:(NSError **)outError {

NSError *error = *outError;
Expand Down
Loading

0 comments on commit ed670e9

Please sign in to comment.