storekit

IAP: Receives `paymentQueueRestoreCompletedTransactionsFinished:` callback with unfinished transactions

僤鯓⒐⒋嵵緔 提交于 2019-12-11 18:55:09
问题 Some times I get this callback - (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue Even before I receive this - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions I don't even get to say finishTransaction: . I find this superweird. I've all this time been assuming paymentQueueRestoreCompletedTransactionsFinished: wouldn't be triggered before I had marked every unfinished transaction as finished. Is this expected behavior? This

SKStoreProductViewController initialization on non main thread

北战南征 提交于 2019-12-11 18:39:54
问题 I am seeing an occasional crash as I initialize SKStoreProductViewController on non main thread. I don't see any docs about initializing it on main thread. Do we have to initialize SKStoreProductViewController on main thread? 回答1: I just made this as an answer so that it can highlight the point made by rmaddy in the comment. Important Use UIKit classes only from your app’s main thread or main dispatch queue, unless otherwise indicated. This restriction particularly applies to classes derived

Titanium Appcelerator - couldn't find module ti.storekit

时光总嘲笑我的痴心妄想 提交于 2019-12-11 18:07:40
问题 I'm getting this error running my app on a simulator or device: [ERROR] : Script Error Couldn't find module: ti.storekit . The device shows a red screen with the same error. I have unzipped the module into ~/Library/Application Support/Titanium/modules/iphone/. In that directory I now have ti.storekit/3.0.0/. I have this in my tiapp.xml: <module platform="iphone" version="3.0.0">ti.storekit</module> I've trolled google, this site, and the appcelerator forum and found no solutions that work

finishTransaction: isn't removing the transaction from queue…

依然范特西╮ 提交于 2019-12-11 12:57:29
问题 I have several non-consumable inApps. The payment is done once (correctly: SKPaymentTransactionStatePurchased), then the download of the inApp is correctly done (and finished) and finnaly I call [[SKPaymentQueue defaultQueue] finishTransaction:transaction]; however the transactions remain in the queue... why? aren't they supposed to be removed? also the following isn't being called: - (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions I've also tried to

InAppPurchase works in simulator but not on iPhone

◇◆丶佛笑我妖孽 提交于 2019-12-11 11:04:30
问题 I have an app v1.0 already released on the store without In App Purchase. I develop a v1.1 adding an In App Purchase. IAP works fine on simulator (title, description, price and ID all come back correctly from iTunes Connect), but not on the device. As Eric sayed on this post, a solution is to delete the app from the iphone and reinstall. In App Purchase works in simulator but not on iPhone => it works BUT Question! Will my users also need to uninstall their application v1.0 and install 1.1

In-App-Rating with stars, without opening appStore

二次信任 提交于 2019-12-11 07:57:14
问题 I want people to rate my app with stars inside the app itself, so without a SKStoreProductView (or whatever). So if they tap "rate" then there is an extra view where they can rate my app with 1 to 5 stars. How do i implement that? thanks a lot 回答1: Possible Now after iOS 10.3+ The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.

SKProduct localizedTitle always English

断了今生、忘了曾经 提交于 2019-12-11 06:28:30
问题 I have in app purchase in my app. I am testing a Japanase language device with a test account that is in the Japan store. I have both English and Japanese in app purchase titles and descriptions. No matter what I do the localizedTitle and localizedDescription of SKProduct always come back in English. What am I doing wrong? My iPad 3 was originally setup in the United States store with English as the language, but I signed out of my store account and went through the normal process in the app

In app purchases with MKStoreKit failing: “Problem in iTunes connect configuration for product: xxx”

邮差的信 提交于 2019-12-11 03:54:22
问题 I'm trying to implement in app purchases in my App using MKStoreKit. I've followed all the steps and I'm getting the error: Problem in iTunes connect configuration for product: I've recreated the provisioning profiles, checked the product id is the same as in itunes connect, sent and rejected a binary, trying to delete everything and set it up again and nothing is working. Any idea? 回答1: I know this is a late reply, but somehow I could not find the answer to this problem elsewhere so I

Restore deleted auto-renewable subscription

淺唱寂寞╮ 提交于 2019-12-11 03:46:28
问题 How does it look like when you delete the auto-renewal subscription from iTunes Connect for your app, and your user will do restore (and have bought some auto-renewal sub in the past)? Example scenario: User purchases auto-renewable subscription and he is subscribed for some time. I delete auto-renewable subscription in iTunes Connect (user subscription is cancelled). User e.g. uninstalls app and install it again and do restore. Will he get all the transactions associated with deleted

How to create free in-app-purchase?

孤街醉人 提交于 2019-12-11 02:36:11
问题 I need one of my in-app purchases to be free, possibly with the provided by Apple IAP structure? Currently the type of that purchase is non-consumable while it's payed everything is okay, but the problem is that if i made it 'free" from price tiers, i receive it's ID in invalidProductIdentifiers . 回答1: NOTE This was accurate when it was written, but has since become outdated You cannot have a free In App Purchase. Think about it. What would Apple gain by giving you free hosting for your stuff