Skip to content

Commit

Permalink
Pushwoosh iOS SDK 6.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
PushwooshCI committed May 7, 2024
1 parent 8067006 commit 93960c1
Show file tree
Hide file tree
Showing 105 changed files with 407 additions and 381 deletions.
37 changes: 35 additions & 2 deletions Documentation/Pushwoosh.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ Pushwoosh class offers access to the singleton-instance of the push manager resp
<tr>
<td><a href="#1a86385c57c5f5a911092f40db090b6de4">- (void)stopServerCommunication</a></td>
</tr>
<tr>
<td><a href="#1a52505171bf9f13f972680d795e796661">- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token</a></td>
</tr>
<tr>
<td><a href="#1a67fc0820b2e3d2e4164fe77946b46366">- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void(^)(NSError *_Nullable))completion</a></td>
</tr>
<tr>
<td><a href="#1a5ce3a6b04e8538352ffa47ec63e6168e">- (void)startLiveActivityWithToken:(NSString *_Nonnull)token</a></td>
</tr>
Expand Down Expand Up @@ -563,17 +569,44 @@ Stops communication with Pushwoosh server.
----------
#### <a name="1a5ce3a6b04e8538352ffa47ec63e6168e"></a>- (void)startLiveActivityWithToken:(NSString \*<a href="Pushwoosh.md#1aa7caab3e4111d4f4756a1e8d56d01c26">_Nonnull</a>)token
#### <a name="1a52505171bf9f13f972680d795e796661"></a>- (void)sendPushToStartLiveActivityToken:(NSString \*<a href="Pushwoosh.md#1ae9429c76f749caa36e1f798ef3e06c6c">_Nullable</a>)token
Process URL of some deep link. Primarly used for register test devices.<br/><br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
<td><strong>url</strong></td>
<td>Deep Link URL Sends live activity token to the server. Call this method when you create a live activity.</td>
<td>Deep Link URL Sends push to start live activity token to the server. Call this method when you want to initiate live activity via push notification</td>
</tr>
</table>
Example:
```Objective-C
if #available(iOS 17.2, *) {
Task {
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
let token = data.map { String(format: "%02x", $0) }.joined()
do {
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
} catch {
print("Error sending push to start live activity: \(error)")
}
}
}
}
```


----------


#### <a name="1a67fc0820b2e3d2e4164fe77946b46366"></a>- (void)sendPushToStartLiveActivityToken:(NSString \*<a href="Pushwoosh.md#1ae9429c76f749caa36e1f798ef3e06c6c">_Nullable</a>)token completion:(void(^)(NSError \*<a href="Pushwoosh.md#1ae9429c76f749caa36e1f798ef3e06c6c">_Nullable</a>))completion


----------


#### <a name="1a5ce3a6b04e8538352ffa47ec63e6168e"></a>- (void)startLiveActivityWithToken:(NSString \*<a href="Pushwoosh.md#1aa7caab3e4111d4f4756a1e8d56d01c26">_Nonnull</a>)token
Sends live activity token to the server. Call this method when you create a live activity.<br/>Example:
```Objective-C
do {
let activity = try Activity<PushwooshAppAttributes>.request(
attributes: attributes,
Expand Down
28 changes: 27 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.5.10"
#define PUSHWOOSH_VERSION @"6.5.11"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -520,6 +520,32 @@ Unregisters from push notifications.
- (BOOL)handleOpenURL:(NSURL * _Nonnull)url;
#endif

/**
Sends push to start live activity token to the server.
Call this method when you want to initiate live activity via push notification
Example:
@code
if #available(iOS 17.2, *) {
Task {
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
let token = data.map { String(format: "%02x", $0) }.joined()
do {
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
} catch {
print("Error sending push to start live activity: \(error)")
}
}
}
}
@endcode
*/

- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;

/**
Sends live activity token to the server.
Call this method when you create a live activity.
Expand Down
Binary file modified Framework/Pushwoosh.framework/Versions/A/Pushwoosh
Binary file not shown.
Binary file not shown.
6 changes: 2 additions & 4 deletions XCFramework/Pushwoosh.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
Expand All @@ -34,13 +33,12 @@
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.10"
#define PUSHWOOSH_VERSION @"6.5.11"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -520,6 +520,32 @@ Unregisters from push notifications.
- (BOOL)handleOpenURL:(NSURL * _Nonnull)url;
#endif

/**
Sends push to start live activity token to the server.
Call this method when you want to initiate live activity via push notification
Example:
@code
if #available(iOS 17.2, *) {
Task {
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
let token = data.map { String(format: "%02x", $0) }.joined()
do {
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
} catch {
print("Error sending push to start live activity: \(error)")
}
}
}
}
@endcode
*/

- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;

/**
Sends live activity token to the server.
Call this method when you create a live activity.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.5.10"
#define PUSHWOOSH_VERSION @"6.5.11"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -520,6 +520,32 @@ Unregisters from push notifications.
- (BOOL)handleOpenURL:(NSURL * _Nonnull)url;
#endif

/**
Sends push to start live activity token to the server.
Call this method when you want to initiate live activity via push notification
Example:
@code
if #available(iOS 17.2, *) {
Task {
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
let token = data.map { String(format: "%02x", $0) }.joined()
do {
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
} catch {
print("Error sending push to start live activity: \(error)")
}
}
}
}
@endcode
*/

- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;

/**
Sends live activity token to the server.
Call this method when you create a live activity.
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>12E507</string>
<string>20E238</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>13.3</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>22E245</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx13.3</string>
<key>DTXcode</key>
<string>1251</string>
<string>1431</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>14E300c</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.5.10"
#define PUSHWOOSH_VERSION @"6.5.11"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -520,6 +520,32 @@ Unregisters from push notifications.
- (BOOL)handleOpenURL:(NSURL * _Nonnull)url;
#endif

/**
Sends push to start live activity token to the server.
Call this method when you want to initiate live activity via push notification
Example:
@code
if #available(iOS 17.2, *) {
Task {
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
let token = data.map { String(format: "%02x", $0) }.joined()
do {
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
} catch {
print("Error sending push to start live activity: \(error)")
}
}
}
}
@endcode
*/

- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;

/**
Sends live activity token to the server.
Call this method when you create a live activity.
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 93960c1

Please sign in to comment.