storekit

iphone in app purchase “Cannot connect to iTunes Store” [duplicate]

牧云@^-^@ 提交于 2019-12-10 22:40:11
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: iPhone Store Kit “Cannot connect to iTunes Store” i am implementing in app purchase when i requesting the payment am getting bellow error. Transaction Error: Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x2dcf40 {NSLocalizedDescription=Cannot connect to iTunes Store} Here some times the error code will be 1004. so i cant do the transaction. in some times it displaying a warning

In App Purchase works in simulator but not on iPhone

淺唱寂寞╮ 提交于 2019-12-10 18:58:32
问题 When I call SKProductsRequest for an in-app purchase on the Simulator title, description, price and ID all come back correctly from iTunes Connect. When I run it on my device, I get invalid product ID. Any idea why? 回答1: I was having same problem. I couldn't test it because my iPad was jailbroken. I removed AppSync, and now it works fine! :) 回答2: If you delete the app from your iPhone and reinstall, it works. THis matters if you've submitted a previous version of the app for review. Thanks

How to make in app purchase work with tvOS beta 2?

ぃ、小莉子 提交于 2019-12-10 16:37:37
问题 I am working on an tvOS app which is linked (with the same App ID) to an iOS app where in app purchase is fully functional, and I am using the same implementation as for the iOS app. I am using a development apple TV, not just the simulator. My sandbox tester account is not recognized by the Apple TV and my productsRequest doesn't get any answer. Is there something specific to do with StoreKit on tvOS ? Thanks 回答1: I found the answer. In app purchases actually work with beta 2 and the

Detect if a user refunded a 'consumable' in app purchase item (Apple app store in app purchase system)

♀尐吖头ヾ 提交于 2019-12-10 12:31:00
问题 I read so far online that the only way to detect if a user cancelled an in app purchase is by using the receipt data that I get from the user's iPhone and check if the cancellation_date exists in there for that item, but as far as I know, this field is only to be found on auto-renewable subscription items. (At least to what I read online on every post I found that talks about in app purchase, no mention to consumables at all.) Because they are always stored in the receipt data, while

StoreKit's SKStoreProductViewController leaving space between the nav bar and the view?

风格不统一 提交于 2019-12-10 10:34:42
问题 I have this subclass of UIViewController that shows a SKStoreProductViewController . This view controller was originally created for iOS 5 and is NOT using auto-layout. My problem is that when the SKStoreProductViewController is presented, there's a space between the nav bar and the actual content... if you scroll the view, the segmented control (Details/Reviews/Related) floats below the nav bar (see the images below, I added a mask to the images to make the problem more apparent). Since we

How can I test a cancellation of subscription in Store Kit in-app purchase?

早过忘川 提交于 2019-12-10 02:19:11
问题 Apple's documentation to test a subscription purchase in Sandbox mode says that: "To check whether a purchase has been canceled, look for the Cancellation Date field in the receipt. If the field has a date in it, regardless of the subscription’s expiration date, the purchase has been canceled—treat a canceled receipt the same as if no purchase had ever been made." But the receipt does not show a Cancellation Date field: "expires_date" = "2015-04-29 16:46:26 Etc/GMT"; "expires_date_ms" =

Does an In App Purchase's Product ID have to begin with a Reverse-DNS?

僤鯓⒐⒋嵵緔 提交于 2019-12-10 01:50:17
问题 Does an In App Purchase's Product ID have to begin with a Reverse-DNS like com.mycompany.My_Awesome_Game.Level_Pack_1 or can it just be standalone like Level_Pack_1 ? 回答1: Product IDs can be whatever you want, although it is recomend you follow the reverse domain name style. But in the end there's no restriction over the naming of your product IDs. It also does not need to use your app bundle ID as a prefix. From the source: Q: I am implementing In App Purchase and must register my product

How check sandbox server status? (“Cannot connect to itunes store”)

…衆ロ難τιáo~ 提交于 2019-12-09 15:12:10
问题 I'm developing in-app purchase using this excellent tutorial: http://www.raywenderlich.com/21081/introduction-to-in-app-purchases-in-ios-6-tutorial and I'm getting an error "Cannot connect to itunes store" which it seems can be related to Apple's sandbox servers being down; apart from googling for tweets regarding sandbox status, is there any other way of confirming their status otherwise it's difficult (read ipossible) to debug. 回答1: Almost a year late, but I'm facing the same problem right

SSErrorDomain, SKReceiptRefreshRequest, SKRequest did fail with error, code = 16, code = 110

与世无争的帅哥 提交于 2019-12-09 11:37:00
问题 iOS 9.2.1, Xcode 7.2.1, ARC enabled I am using the following method to check for failures of SKProductsRequest and SKReceiptRefreshRequest : - (void)request:(SKRequest *)request didFailWithError:(NSError *)error { NSLog(@"error: %@", error); } My question is specifically about SKReceiptRefreshRequest . I am testing for two conditions, (1) when the user cancels the sign-in to iTunes Store for the receipt request and (2) when the user tries to sign-in and there is no connection (Air Plane Mode)

iOS In-App Purchases: Sandbox Invalid Product ID

和自甴很熟 提交于 2019-12-09 09:27:03
问题 Background on the slightly odd setup before I get to the problem: Working on an app for a client and we're using an different iTunes developer account than the one this will eventually be published on for development and Ad-Hoc builds of an app that has Game Center and IAP integration. Obviously, we'll eventually have to duplicate our setup on the final release account, but the issue seems to be unrelated. The issue is trying to test In-App Purchases in the sandbox. We do not have any Tax