Skip to content

Commit 93960c1

Browse files
committed
1 parent 8067006 commit 93960c1

File tree

105 files changed

+407
-381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+407
-381
lines changed

Documentation/Pushwoosh.md

Lines changed: 35 additions & 2 deletions

Framework/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.5.10"
21+
#define PUSHWOOSH_VERSION @"6.5.11"
2222

2323

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

523+
/**
524+
Sends push to start live activity token to the server.
525+
Call this method when you want to initiate live activity via push notification
526+
527+
Example:
528+
@code
529+
530+
if #available(iOS 17.2, *) {
531+
Task {
532+
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
533+
let token = data.map { String(format: "%02x", $0) }.joined()
534+
do {
535+
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
536+
} catch {
537+
print("Error sending push to start live activity: \(error)")
538+
}
539+
}
540+
}
541+
}
542+
543+
@endcode
544+
*/
545+
546+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
547+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;
548+
523549
/**
524550
Sends live activity token to the server.
525551
Call this method when you create a live activity.
Binary file not shown.
Binary file not shown.

XCFramework/Pushwoosh.xcframework/Info.plist

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_armv7</string>
9+
<string>ios-arm64</string>
1010
<key>LibraryPath</key>
1111
<string>Pushwoosh.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>armv7</string>
1615
</array>
1716
<key>SupportedPlatform</key>
1817
<string>ios</string>
@@ -34,13 +33,12 @@
3433
</dict>
3534
<dict>
3635
<key>LibraryIdentifier</key>
37-
<string>ios-arm64_i386_x86_64-simulator</string>
36+
<string>ios-arm64_x86_64-simulator</string>
3837
<key>LibraryPath</key>
3938
<string>Pushwoosh.framework</string>
4039
<key>SupportedArchitectures</key>
4140
<array>
4241
<string>arm64</string>
43-
<string>i386</string>
4442
<string>x86_64</string>
4543
</array>
4644
<key>SupportedPlatform</key>

XCFramework/Pushwoosh.xcframework/ios-arm64_armv7/Pushwoosh.framework/Headers/Pushwoosh.h renamed to XCFramework/Pushwoosh.xcframework/ios-arm64/Pushwoosh.framework/Headers/Pushwoosh.h

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.5.10"
21+
#define PUSHWOOSH_VERSION @"6.5.11"
2222

2323

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

523+
/**
524+
Sends push to start live activity token to the server.
525+
Call this method when you want to initiate live activity via push notification
526+
527+
Example:
528+
@code
529+
530+
if #available(iOS 17.2, *) {
531+
Task {
532+
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
533+
let token = data.map { String(format: "%02x", $0) }.joined()
534+
do {
535+
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
536+
} catch {
537+
print("Error sending push to start live activity: \(error)")
538+
}
539+
}
540+
}
541+
}
542+
543+
@endcode
544+
*/
545+
546+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
547+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;
548+
523549
/**
524550
Sends live activity token to the server.
525551
Call this method when you create a live activity.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

XCFramework/Pushwoosh.xcframework/ios-arm64_x86_64-maccatalyst/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.5.10"
21+
#define PUSHWOOSH_VERSION @"6.5.11"
2222

2323

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

523+
/**
524+
Sends push to start live activity token to the server.
525+
Call this method when you want to initiate live activity via push notification
526+
527+
Example:
528+
@code
529+
530+
if #available(iOS 17.2, *) {
531+
Task {
532+
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
533+
let token = data.map { String(format: "%02x", $0) }.joined()
534+
do {
535+
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
536+
} catch {
537+
print("Error sending push to start live activity: \(error)")
538+
}
539+
}
540+
}
541+
}
542+
543+
@endcode
544+
*/
545+
546+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
547+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;
548+
523549
/**
524550
Sends live activity token to the server.
525551
Call this method when you create a live activity.

XCFramework/Pushwoosh.xcframework/ios-arm64_x86_64-maccatalyst/Pushwoosh.framework/Versions/A/Resources/Info.plist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
<key>DTCompiler</key>
2828
<string>com.apple.compilers.llvm.clang.1_0</string>
2929
<key>DTPlatformBuild</key>
30-
<string>12E507</string>
30+
<string>20E238</string>
3131
<key>DTPlatformName</key>
3232
<string>macosx</string>
3333
<key>DTPlatformVersion</key>
34-
<string>11.3</string>
34+
<string>13.3</string>
3535
<key>DTSDKBuild</key>
36-
<string>20E214</string>
36+
<string>22E245</string>
3737
<key>DTSDKName</key>
38-
<string>macosx11.3</string>
38+
<string>macosx13.3</string>
3939
<key>DTXcode</key>
40-
<string>1251</string>
40+
<string>1431</string>
4141
<key>DTXcodeBuild</key>
42-
<string>12E507</string>
42+
<string>14E300c</string>
4343
<key>LSMinimumSystemVersion</key>
4444
<string>10.15</string>
4545
<key>NSHumanReadableCopyright</key>
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.5.10"
21+
#define PUSHWOOSH_VERSION @"6.5.11"
2222

2323

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

523+
/**
524+
Sends push to start live activity token to the server.
525+
Call this method when you want to initiate live activity via push notification
526+
527+
Example:
528+
@code
529+
530+
if #available(iOS 17.2, *) {
531+
Task {
532+
for await data in Activity<LiveActivityAttributes>.pushToStartTokenUpdates {
533+
let token = data.map { String(format: "%02x", $0) }.joined()
534+
do {
535+
try await Pushwoosh.sharedInstance().sendPush(toStartLiveActivityToken: token)
536+
} catch {
537+
print("Error sending push to start live activity: \(error)")
538+
}
539+
}
540+
}
541+
}
542+
543+
@endcode
544+
*/
545+
546+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token;
547+
- (void)sendPushToStartLiveActivityToken:(NSString *_Nullable)token completion:(void (^ _Nullable)(NSError * _Nullable))completion;
548+
523549
/**
524550
Sends live activity token to the server.
525551
Call this method when you create a live activity.

0 commit comments

Comments
 (0)