Skip to content

Commit 11962ef

Browse files
committed
1 parent a1c77f8 commit 11962ef

File tree

14 files changed

+197
-16
lines changed

14 files changed

+197
-16
lines changed

Documentation/PWPurchaseDelegate-p.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
# <a name="heading"></a>protocol PWPurchaseDelegate&lt;NSObject&gt;
3+
PWPurchaseDelegate protocol defines the methods that can be implemented in the delegate of the Pushwoosh class' singleton object. These methods provide callbacks for events related to purchasing In-App products from rich medias, such as successful purchase event, failed payment, etc. These methods implementation allows to react on such events properly.
4+
## Members
5+
6+
<table>
7+
<tr>
8+
<td><a href="#1aa3aa2cd86030c676cb0263f7dfc0da38">- (void)onPWInAppPurchaseHelperProducts:(NSArray&lt;SKProduct *&gt; *_Nullable)products</a></td>
9+
</tr>
10+
<tr>
11+
<td><a href="#1a41112ade0f3fe66dd3927b05f0d83741">- (void)onPWInAppPurchaseHelperPaymentComplete:(NSString *_Nullable)identifier</a></td>
12+
</tr>
13+
<tr>
14+
<td><a href="#1afe6ba0166b6dece1f77613711f14623b">- (void)onPWInAppPurchaseHelperPaymentFailedProductIdentifier:(NSString *_Nullable)identifier error:(NSError *_Nullable)error</a></td>
15+
</tr>
16+
<tr>
17+
<td><a href="#1a6293e30dc66a113f8188a934500dd041">- (void)onPWInAppPurchaseHelperCallPromotedPurchase:(NSString *_Nullable)identifier</a></td>
18+
</tr>
19+
<tr>
20+
<td><a href="#1a8f3a21a6b045b0e32114881149600aff">- (void)onPWInAppPurchaseHelperRestoreCompletedTransactionsFailed:(NSError *_Nullable)error</a></td>
21+
</tr>
22+
</table>
23+
24+
25+
----------
26+
27+
28+
#### <a name="1aa3aa2cd86030c676cb0263f7dfc0da38"></a>- (void)onPWInAppPurchaseHelperProducts:(NSArray&lt;SKProduct \*&gt; \*\_Nullable)products
29+
30+
31+
----------
32+
33+
34+
#### <a name="1a41112ade0f3fe66dd3927b05f0d83741"></a>- (void)onPWInAppPurchaseHelperPaymentComplete:(NSString \*\_Nullable)identifier
35+
36+
37+
----------
38+
39+
40+
#### <a name="1afe6ba0166b6dece1f77613711f14623b"></a>- (void)onPWInAppPurchaseHelperPaymentFailedProductIdentifier:(NSString \*\_Nullable)identifier error:(NSError \*\_Nullable)error
41+
42+
43+
----------
44+
45+
46+
#### <a name="1a6293e30dc66a113f8188a934500dd041"></a>- (void)onPWInAppPurchaseHelperCallPromotedPurchase:(NSString \*\_Nullable)identifier
47+
48+
49+
----------
50+
51+
52+
#### <a name="1a8f3a21a6b045b0e32114881149600aff"></a>- (void)onPWInAppPurchaseHelperRestoreCompletedTransactionsFailed:(NSError \*\_Nullable)error

Documentation/Pushwoosh.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Pushwoosh class offers access to the singleton-instance of the push manager resp
1010
<tr>
1111
<td><a href="#1ae9429c76f749caa36e1f798ef3e06c6c">@property NSObject&lt;PWMessagingDelegate&gt; *_Nullable</a></td>
1212
</tr>
13+
<tr>
14+
<td><a href="#1ad4f33662a2c344c8a590d03b859cf935">@property NSObject&lt;PWPurchaseDelegate&gt; *_Nullable</a></td>
15+
</tr>
1316
<tr>
1417
<td><a href="#1abe8dbad57ad73ac86a51cc0b4dfc64e5">@property NSDictionary *_Nullable</a></td>
1518
</tr>
@@ -136,6 +139,12 @@ PushNotificationDelegate protocol delegate that would receive the information ab
136139
----------
137140

138141

142+
#### <a name="1ad4f33662a2c344c8a590d03b859cf935"></a>@property NSObject&lt;<a href="PWPurchaseDelegate-p.md">PWPurchaseDelegate</a>&gt; \*_Nullable
143+
PushPurchaseDelegate protocol delegate that would receive the information about events related to purchasing InApp products from rich medias
144+
145+
----------
146+
147+
139148
#### <a name="1abe8dbad57ad73ac86a51cc0b4dfc64e5"></a>@property NSDictionary \*_Nullable
140149
Returns push notification payload if the app was started in response to push notification or null otherwise
141150

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

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

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.4.4"
21+
#define PUSHWOOSH_VERSION @"6.4.5"
2222

2323

2424
@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
@@ -55,6 +55,31 @@ Tells the delegate that the user has pressed on the push notification banner.
5555

5656
@end
5757

58+
/**
59+
`PWPurchaseDelegate` protocol defines the methods that can be implemented in the delegate of the `Pushwoosh` class' singleton object.
60+
These methods provide callbacks for events related to purchasing In-App products from rich medias, such as successful purchase event, failed payment, etc.
61+
These methods implementation allows to react on such events properly.
62+
*/
63+
64+
@protocol PWPurchaseDelegate <NSObject>
65+
66+
//list of products
67+
-(void)onPWInAppPurchaseHelperProducts:(NSArray<SKProduct *>* _Nullable)products;
68+
69+
//payment complete
70+
-(void)onPWInAppPurchaseHelperPaymentComplete:(NSString* _Nullable)identifier;
71+
72+
//payment failed
73+
-(void)onPWInAppPurchaseHelperPaymentFailedProductIdentifier:(NSString* _Nullable)identifier error:(NSError* _Nullable)error;
74+
75+
//promoted In-App purchase
76+
-(void)onPWInAppPurchaseHelperCallPromotedPurchase:(NSString* _Nullable)identifier;
77+
78+
//Tells the observer that an error occurred while restoring transactions.
79+
-(void)onPWInAppPurchaseHelperRestoreCompletedTransactionsFailed:(NSError * _Nullable)error;
80+
81+
@end
82+
5883

5984
/**
6085
Message from Pushwoosh.
@@ -140,6 +165,11 @@ Tells the delegate that the user has pressed on the push notification banner.
140165
*/
141166
@property (nonatomic, weak) NSObject<PWMessagingDelegate> * _Nullable delegate;
142167

168+
/**
169+
`PushPurchaseDelegate` protocol delegate that would receive the information about events related to purchasing InApp products from rich medias
170+
*/
171+
@property (nonatomic, weak) NSObject<PWPurchaseDelegate> * _Nullable purchaseDelegate;
172+
143173
#if TARGET_OS_IOS || TARGET_OS_WATCH
144174

145175
/**
Binary file not shown.
Binary file not shown.

XCFramework/Pushwoosh.xcframework/Info.plist

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,47 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_armv7</string>
9+
<string>ios-arm64_x86_64-maccatalyst</string>
1010
<key>LibraryPath</key>
1111
<string>Pushwoosh.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>armv7</string>
15+
<string>x86_64</string>
1616
</array>
1717
<key>SupportedPlatform</key>
1818
<string>ios</string>
19+
<key>SupportedPlatformVariant</key>
20+
<string>maccatalyst</string>
1921
</dict>
2022
<dict>
2123
<key>LibraryIdentifier</key>
22-
<string>ios-arm64_i386_x86_64-simulator</string>
24+
<string>ios-arm64_armv7</string>
2325
<key>LibraryPath</key>
2426
<string>Pushwoosh.framework</string>
2527
<key>SupportedArchitectures</key>
2628
<array>
2729
<string>arm64</string>
28-
<string>i386</string>
29-
<string>x86_64</string>
30+
<string>armv7</string>
3031
</array>
3132
<key>SupportedPlatform</key>
3233
<string>ios</string>
33-
<key>SupportedPlatformVariant</key>
34-
<string>simulator</string>
3534
</dict>
3635
<dict>
3736
<key>LibraryIdentifier</key>
38-
<string>ios-arm64_x86_64-maccatalyst</string>
37+
<string>ios-arm64_i386_x86_64-simulator</string>
3938
<key>LibraryPath</key>
4039
<string>Pushwoosh.framework</string>
4140
<key>SupportedArchitectures</key>
4241
<array>
4342
<string>arm64</string>
43+
<string>i386</string>
4444
<string>x86_64</string>
4545
</array>
4646
<key>SupportedPlatform</key>
4747
<string>ios</string>
4848
<key>SupportedPlatformVariant</key>
49-
<string>maccatalyst</string>
49+
<string>simulator</string>
5050
</dict>
5151
</array>
5252
<key>CFBundlePackageType</key>

XCFramework/Pushwoosh.xcframework/ios-arm64_armv7/Pushwoosh.framework/Headers/Pushwoosh.h

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

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.4.4"
21+
#define PUSHWOOSH_VERSION @"6.4.5"
2222

2323

2424
@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
@@ -55,6 +55,31 @@ Tells the delegate that the user has pressed on the push notification banner.
5555

5656
@end
5757

58+
/**
59+
`PWPurchaseDelegate` protocol defines the methods that can be implemented in the delegate of the `Pushwoosh` class' singleton object.
60+
These methods provide callbacks for events related to purchasing In-App products from rich medias, such as successful purchase event, failed payment, etc.
61+
These methods implementation allows to react on such events properly.
62+
*/
63+
64+
@protocol PWPurchaseDelegate <NSObject>
65+
66+
//list of products
67+
-(void)onPWInAppPurchaseHelperProducts:(NSArray<SKProduct *>* _Nullable)products;
68+
69+
//payment complete
70+
-(void)onPWInAppPurchaseHelperPaymentComplete:(NSString* _Nullable)identifier;
71+
72+
//payment failed
73+
-(void)onPWInAppPurchaseHelperPaymentFailedProductIdentifier:(NSString* _Nullable)identifier error:(NSError* _Nullable)error;
74+
75+
//promoted In-App purchase
76+
-(void)onPWInAppPurchaseHelperCallPromotedPurchase:(NSString* _Nullable)identifier;
77+
78+
//Tells the observer that an error occurred while restoring transactions.
79+
-(void)onPWInAppPurchaseHelperRestoreCompletedTransactionsFailed:(NSError * _Nullable)error;
80+
81+
@end
82+
5883

5984
/**
6085
Message from Pushwoosh.
@@ -140,6 +165,11 @@ Tells the delegate that the user has pressed on the push notification banner.
140165
*/
141166
@property (nonatomic, weak) NSObject<PWMessagingDelegate> * _Nullable delegate;
142167

168+
/**
169+
`PushPurchaseDelegate` protocol delegate that would receive the information about events related to purchasing InApp products from rich medias
170+
*/
171+
@property (nonatomic, weak) NSObject<PWPurchaseDelegate> * _Nullable purchaseDelegate;
172+
143173
#if TARGET_OS_IOS || TARGET_OS_WATCH
144174

145175
/**

XCFramework/Pushwoosh.xcframework/ios-arm64_i386_x86_64-simulator/Pushwoosh.framework/Headers/Pushwoosh.h

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

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.4.4"
21+
#define PUSHWOOSH_VERSION @"6.4.5"
2222

2323

2424
@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
@@ -55,6 +55,31 @@ Tells the delegate that the user has pressed on the push notification banner.
5555

5656
@end
5757

58+
/**
59+
`PWPurchaseDelegate` protocol defines the methods that can be implemented in the delegate of the `Pushwoosh` class' singleton object.
60+
These methods provide callbacks for events related to purchasing In-App products from rich medias, such as successful purchase event, failed payment, etc.
61+
These methods implementation allows to react on such events properly.
62+
*/
63+
64+
@protocol PWPurchaseDelegate <NSObject>
65+
66+
//list of products
67+
-(void)onPWInAppPurchaseHelperProducts:(NSArray<SKProduct *>* _Nullable)products;
68+
69+
//payment complete
70+
-(void)onPWInAppPurchaseHelperPaymentComplete:(NSString* _Nullable)identifier;
71+
72+
//payment failed
73+
-(void)onPWInAppPurchaseHelperPaymentFailedProductIdentifier:(NSString* _Nullable)identifier error:(NSError* _Nullable)error;
74+
75+
//promoted In-App purchase
76+
-(void)onPWInAppPurchaseHelperCallPromotedPurchase:(NSString* _Nullable)identifier;
77+
78+
//Tells the observer that an error occurred while restoring transactions.
79+
-(void)onPWInAppPurchaseHelperRestoreCompletedTransactionsFailed:(NSError * _Nullable)error;
80+
81+
@end
82+
5883

5984
/**
6085
Message from Pushwoosh.
@@ -140,6 +165,11 @@ Tells the delegate that the user has pressed on the push notification banner.
140165
*/
141166
@property (nonatomic, weak) NSObject<PWMessagingDelegate> * _Nullable delegate;
142167

168+
/**
169+
`PushPurchaseDelegate` protocol delegate that would receive the information about events related to purchasing InApp products from rich medias
170+
*/
171+
@property (nonatomic, weak) NSObject<PWPurchaseDelegate> * _Nullable purchaseDelegate;
172+
143173
#if TARGET_OS_IOS || TARGET_OS_WATCH
144174

145175
/**

XCFramework/Pushwoosh.xcframework/ios-arm64_i386_x86_64-simulator/Pushwoosh.framework/_CodeSignature/CodeResources

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</data>
5151
<key>Headers/Pushwoosh.h</key>
5252
<data>
53-
TqJLHp5uGs8j3QNlgX6nDl2aLl8=
53+
bVwaDzyx33MHZH2lTkvpOBUmRT4=
5454
</data>
5555
<key>Info.plist</key>
5656
<data>
@@ -188,11 +188,11 @@
188188
<dict>
189189
<key>hash</key>
190190
<data>
191-
TqJLHp5uGs8j3QNlgX6nDl2aLl8=
191+
bVwaDzyx33MHZH2lTkvpOBUmRT4=
192192
</data>
193193
<key>hash2</key>
194194
<data>
195-
3vDIopv3PF8Sy/yaW5WW87ZcBFnsHyT8DN7CzNoysxk=
195+
QrdnAAEKDBpodDSwbOT/EAgUKp9kviTzTrmNzfZsSIs=
196196
</data>
197197
</dict>
198198
<key>Modules/module.modulemap</key>

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

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

1919
#endif
2020

21-
#define PUSHWOOSH_VERSION @"6.4.4"
21+
#define PUSHWOOSH_VERSION @"6.4.5"
2222

2323

2424
@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
@@ -55,6 +55,31 @@ Tells the delegate that the user has pressed on the push notification banner.
5555

5656
@end
5757

58+
/**
59+
`PWPurchaseDelegate` protocol defines the methods that can be implemented in the delegate of the `Pushwoosh` class' singleton object.
60+
These methods provide callbacks for events related to purchasing In-App products from rich medias, such as successful purchase event, failed payment, etc.
61+
These methods implementation allows to react on such events properly.
62+
*/
63+
64+
@protocol PWPurchaseDelegate <NSObject>
65+
66+
//list of products
67+
-(void)onPWInAppPurchaseHelperProducts:(NSArray<SKProduct *>* _Nullable)products;
68+
69+
//payment complete
70+
-(void)onPWInAppPurchaseHelperPaymentComplete:(NSString* _Nullable)identifier;
71+
72+
//payment failed
73+
-(void)onPWInAppPurchaseHelperPaymentFailedProductIdentifier:(NSString* _Nullable)identifier error:(NSError* _Nullable)error;
74+
75+
//promoted In-App purchase
76+
-(void)onPWInAppPurchaseHelperCallPromotedPurchase:(NSString* _Nullable)identifier;
77+
78+
//Tells the observer that an error occurred while restoring transactions.
79+
-(void)onPWInAppPurchaseHelperRestoreCompletedTransactionsFailed:(NSError * _Nullable)error;
80+
81+
@end
82+
5883

5984
/**
6085
Message from Pushwoosh.
@@ -140,6 +165,11 @@ Tells the delegate that the user has pressed on the push notification banner.
140165
*/
141166
@property (nonatomic, weak) NSObject<PWMessagingDelegate> * _Nullable delegate;
142167

168+
/**
169+
`PushPurchaseDelegate` protocol delegate that would receive the information about events related to purchasing InApp products from rich medias
170+
*/
171+
@property (nonatomic, weak) NSObject<PWPurchaseDelegate> * _Nullable purchaseDelegate;
172+
143173
#if TARGET_OS_IOS || TARGET_OS_WATCH
144174

145175
/**

0 commit comments

Comments
 (0)