Skip to content

Commit 99cd680

Browse files
committed
PC iOS Fix
Fixes override in the connector params
1 parent a8b707f commit 99cd680

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ios/PCAppsFlyer.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ @implementation PCAppsFlyer
4343
BOOL sandbox = [config[sandboxKey] boolValue];
4444

4545
[connector setIsSandbox:sandbox];
46-
47-
if (logSubscriptions) {
46+
47+
if (logSubscriptions && logInApps) {
48+
[connector setAutoLogPurchaseRevenue:AFSDKAutoLogPurchaseRevenueOptionsAutoRenewableSubscriptions | AFSDKAutoLogPurchaseRevenueOptionsInAppPurchases];
49+
}
50+
else if (logSubscriptions) {
4851
[connector setAutoLogPurchaseRevenue:AFSDKAutoLogPurchaseRevenueOptionsAutoRenewableSubscriptions];
4952
}
50-
if (logInApps) {
53+
else if (logInApps) {
5154
[connector setAutoLogPurchaseRevenue:AFSDKAutoLogPurchaseRevenueOptionsInAppPurchases];
5255
}
5356

0 commit comments

Comments
 (0)