storekit

Storekit implementation on Apple Watch?

丶灬走出姿态 提交于 2021-02-08 10:42:30
问题 Apple recently announced the ability to make purchases on the Apple Watch. I'm running Watch OS 6.2 and made a sandbox purchase on the iPhone, but there is no receipt on the watch (at least using Bundle.main.appStoreReceiptURL code below) Do we have to handle passing the receipt from the iPhone to the Watch ourselves? My understanding was that there would be an equivalent receipt saved on the watch we could parse. private func loadReceipt() -> Data? { guard let url = Bundle.main

App Store Connect does not show all sales - why?

强颜欢笑 提交于 2021-02-07 04:21:05
问题 In order to be able to better estimate the revenue income of our app, we implemented a Database function that reliably (we tested it in Sandbox mode) increases a subscription counter for the subscription that was made by one once a subscription has been made. This function is only triggered once an in-app purchase has been successful (i.e. when we receive the feedback from StoreKit to enable the Premium functions). Now, we have found enormous discrepancies between the data we observed and the

StoreKit Delegate / Observable object in SwiftUI View

浪尽此生 提交于 2020-12-12 06:28:29
问题 When I restored my purchases, I need to disabled the restore button in the view. I have IAPManager class with SKPaymentTransactionObserver , and it works fine, I saw the print("restored") of SKPaymentTransactionObserver when I call SKPaymentQueue.default().restoreCompletedTransactions from my principal view. So, then the problem is that from the view I do not find out about that event and therefore I cannot disable the button, since the purchase has already been restored. In my IAPManager:

StoreKit Delegate / Observable object in SwiftUI View

匆匆过客 提交于 2020-12-12 06:26:04
问题 When I restored my purchases, I need to disabled the restore button in the view. I have IAPManager class with SKPaymentTransactionObserver , and it works fine, I saw the print("restored") of SKPaymentTransactionObserver when I call SKPaymentQueue.default().restoreCompletedTransactions from my principal view. So, then the problem is that from the view I do not find out about that event and therefore I cannot disable the button, since the purchase has already been restored. In my IAPManager:

In App Purchase on Mac Catalyst Not Working

霸气de小男生 提交于 2020-07-22 03:57:50
问题 In app purchases work fine for my iOS side of things. The data from StoreKit is populated as it should. The same code doesn't work on the Mac Catalyst version of the project. I have even created a listing for my Mac app on App Store connect with different bundle identifiers for the in app purchases. I have a print function that returns what product StoreKit found, it works well on iOS, but results with nothing when using Mac Catalyst. Here is what I have done: Make sure that In App purchases

In App Purchase on Mac Catalyst Not Working

故事扮演 提交于 2020-07-22 03:56:40
问题 In app purchases work fine for my iOS side of things. The data from StoreKit is populated as it should. The same code doesn't work on the Mac Catalyst version of the project. I have even created a listing for my Mac app on App Store connect with different bundle identifiers for the in app purchases. I have a print function that returns what product StoreKit found, it works well on iOS, but results with nothing when using Mac Catalyst. Here is what I have done: Make sure that In App purchases

In App Purchase on Mac Catalyst Not Working

淺唱寂寞╮ 提交于 2020-07-22 03:56:05
问题 In app purchases work fine for my iOS side of things. The data from StoreKit is populated as it should. The same code doesn't work on the Mac Catalyst version of the project. I have even created a listing for my Mac app on App Store connect with different bundle identifiers for the in app purchases. I have a print function that returns what product StoreKit found, it works well on iOS, but results with nothing when using Mac Catalyst. Here is what I have done: Make sure that In App purchases

Receipt validation issue in App Purchases Mac Store “Receipt validation should be presented…”

杀马特。学长 韩版系。学妹 提交于 2020-02-24 11:15:50
问题 My applications uses the Store Kit API to purchases in app purchases. I am getting the following store rejection issue, has anyone ever encountered this? 2.3 Apps that do not perform as advertised by the developer will be rejected The app is not using the Store Kit API properly. The application needs to use receipt validation in order for Store Kit to properly process In App Purchases. I inquired further and they said: Receipt validation should be presented on launch of the app. Anyone have

Receipt validation issue in App Purchases Mac Store “Receipt validation should be presented…”

人盡茶涼 提交于 2020-02-24 11:14:06
问题 My applications uses the Store Kit API to purchases in app purchases. I am getting the following store rejection issue, has anyone ever encountered this? 2.3 Apps that do not perform as advertised by the developer will be rejected The app is not using the Store Kit API properly. The application needs to use receipt validation in order for Store Kit to properly process In App Purchases. I inquired further and they said: Receipt validation should be presented on launch of the app. Anyone have

StoreKit on iOS - autorenewable subscription - How to know whether it is a free trial or not?

自作多情 提交于 2020-02-11 10:54:19
问题 In iTunes Connect it is possible to give a free trial period for autorenewable subscriptions. App > Manage In App Purchases > Subscription Basic > 1 Month > Offer a free trial? How can I get this information on the client? SKProduct does not have any information about this as I can see. Since we're having a marketing campaign it is very confusing for the end user to not see information about the product has a trial period. Of course it is possible to fetch this kind of information from a