storekit

iPhone Store Kit returning invalid product ID errors

限于喜欢 提交于 2020-01-01 06:27:16
问题 I am trying to test In App Purchases on my iPhone and running into a problem where the product IDs I request information for end up being returned to me as invalid product IDs in the "didRecieveResponse" method. I have: Created an in store product associated with this app. It's bundle ID matches everything else. It has been cleared for sale and approved by the developer. Made sure my new provisioning profile has in store app purchases enabled and it has the full app name: "com.domain.appname"

iPhone Store Kit returning invalid product ID errors

狂风中的少年 提交于 2020-01-01 06:27:13
问题 I am trying to test In App Purchases on my iPhone and running into a problem where the product IDs I request information for end up being returned to me as invalid product IDs in the "didRecieveResponse" method. I have: Created an in store product associated with this app. It's bundle ID matches everything else. It has been cleared for sale and approved by the developer. Made sure my new provisioning profile has in store app purchases enabled and it has the full app name: "com.domain.appname"

Unable to finish unfinished transactions in payment queue

别等时光非礼了梦想. 提交于 2019-12-31 20:37:11
问题 My application went to some odd state in IAP sandbox... Every time I launch application it is asking for password of particular test user. I guess due to unfinished transaction. I really want to finish that transaction, but it's not possible. Some background info and what I have done for it: I've deleted that test user from itunesconnect As soon as application launches I call [[SKPaymentQueue defaultQueue] addTransactionObserver:self] No payment queue update notification is received after I

Trouble getting the original app version that the user installed (receipt validation)?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-31 10:52:54
问题 I have an app that I recently updated to work with in app purchases. The previous version (paid but with no in app purchases) was 1.0 and the current version is 1.1. As the in app purchase essentially unlocks all features (which were included in the paid version 1.0), I wanted a way for users that had originally downloaded version 1.0 to be upgraded if they pressed my restore purchases button. To do this, I first try to restore purchases and if the response to: - (void

Trouble getting the original app version that the user installed (receipt validation)?

白昼怎懂夜的黑 提交于 2019-12-31 10:51:28
问题 I have an app that I recently updated to work with in app purchases. The previous version (paid but with no in app purchases) was 1.0 and the current version is 1.1. As the in app purchase essentially unlocks all features (which were included in the paid version 1.0), I wanted a way for users that had originally downloaded version 1.0 to be upgraded if they pressed my restore purchases button. To do this, I first try to restore purchases and if the response to: - (void

How best to store Apple Root Certificates for receipt validation

青春壹個敷衍的年華 提交于 2019-12-25 07:31:46
问题 When validating a StoreKit receipts (I'm using ReceiptKit). You need the Apple Root Certificate. Is it ok just to include this in the App bundle or should I be downloading a fresh copy every time? They both seem to have their risks? 回答1: All reference I have found recommend downloading and storing the certificate in your bundle. I would not suggest downloading it on the fly. The repository you refer to recommends it: I scoured the Apple Docs, tutorials and many sample repositories while

Starting a SKProductsRequest gives -[_NSCFArray length] invalid selector error a moment later. LoadMicroPaymentsProductsOperation error

徘徊边缘 提交于 2019-12-25 04:44:17
问题 I'm fetching a list of identifiers from my server, then passing them off in a products request to Apple. Here's my code, and below is the error I'm getting. The iPhone 4 is not crashing when this happens. -(void)didReceiveData:(NSArray *)data { NSLog(@"Received Identifiers: %@",data); NSSet *productIdentifiers = [NSSet setWithArray:data]; SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers]; productsRequest.delegate = self;

what happens when an app that has in-app purchase products on it gets updated?

被刻印的时光 ゝ 提交于 2019-12-24 15:20:58
问题 I suppose it's up to the programmer to keep track of IAPs after the app is updated? Would I have to write a file to the documents folder saying the IAP was purchased, and then have the code check to see if the file's there once the app updates? I have an app out now that has in-app purchases available, and I'm planning on releasing an update, but what will happen to users that purchased IAPs? 回答1: Apple keeps track of in-app-purchases that your users make. You can ask Apple about the in-app

SKStoreReviewController not showing app icon in development

喜夏-厌秋 提交于 2019-12-24 11:16:53
问题 I'm using SKStoreReviewController to show the built-in AppStore rating UI. When I test this locally, the app icon is not shown on the popup, instead Xcode's default icon (for projects without an icon) is shown. However, the app is configured correctly with an icon, which is displayed on the home screen. Is this expected behavior or should the dialog contain the icon even in development mode? According to the docs, the dialog is not shown in TestFlight builds, so I cannot test this unless I

How to Update an Application After Users Pay For Upgrade

落花浮王杯 提交于 2019-12-24 07:45:48
问题 I need to update my application after the user pays for an update. I want to alter the current application instead of downloading a new version. After the user pays, I will enable certain functions of the app. How would I implement this? 回答1: Apple will not allow an app that has visible but unusable features. You can't show a grayed out feature and say, "pay us to get this feature." Neither will they let you significantly alter an app without changing its name. Instead they force you to issue