Posts

Post not yet marked as solved
0 Replies
105 Views
Description In my project i have a script in Build Phases that adds some warnings based on source code TODOs. Problem The generated warnings in the Issue Navigator are aggregated if the issue description is identical (which happens quite often), so that only one of all the warnings appear. The script was working fine till xcode11. Any idea if there is something i am missing or any announced change to how build output is interpreted? Additional Info Compilation output is similar to following format: /<abosulte-path>/SwiftFileB.swift:6:1: warning: #1533: implement something /<abosulte-path>/SwiftFileC.swift:6:1: warning: #1533: implement something /<abosulte-path>/SwiftFileD.swift:6:1: warning: #1533: implement something
Posted
by jalone.
Last updated
.
Post not yet marked as solved
2 Replies
1.1k Views
TL;DR Can you postpone the finishTransaction call on a consumable in iOS to mimic androids consumeAsync?In Android one can purchase an item it will end up in a list managed by the billing api. And can be accessed via [queryPurchaseHistoryAsync][1].An item can then be consumed later. The purchase and the consumption are two separate things so.An account is optional in our app and we use the described functionality in android to keep track of the items a user has purchased / but not yet consumed also when one lost his/her device.The docs are not clear on the [SKPaymentQueue][2] regarding multi-device synchronization."The contents of the queue are persistent between launches of your app."But in practice, it seems to be exchanged between devices.While different [sources][3] suggest you have to take care of managing the state of consumables for your self.I was wondering if one can use the SKPaymentQueue as a single point of truth by keeping the consumable [SKPaymentTransaction][4] in the [purchased][5] state. I would therefore not call the [finishTransaction][6] before the item has actually consumed.In theory, the transaction should stay in the SKPaymentQueue and should be transferred to all devices logged in with the same AppStore account.As soon as the transaction is finished on one of the devices it should get removed from the queue and again the information should be spread to all devices.I couldn't find this approach somewhere and I would like to know if I miss something important here. [1]: https://developer.android.com/reference/com/android/billingclient/api/BillingClient.html#queryPurchaseHistoryAsync%28java.lang.String,%20com.android.billingclient.api.PurchaseHistoryResponseListener%29 [2]: https://developer.apple.com/documentation/storekit/skpaymentqueue [3]: https://stackoverflow.com/questions/22599763/how-to-consume-a-purchased-item-with-in-app-purchase-on-ios [4]: https://developer.apple.com/documentation/storekit/skpaymenttransaction [5]: https://developer.apple.com/documentation/storekit/skpaymenttransactionstate/purchased [6]: https://developer.apple.com/documentation/storekit/skpaymentqueue/1506003-finishtransaction
Posted
by jalone.
Last updated
.