storekit

iOS In App Purchase - “Invalid Product ID” in release, NOT development version

☆樱花仙子☆ 提交于 2019-12-08 22:39:12
问题 I created a new app and uploaded the binary to iTunes Connect, then tested IAP using the test user account, both on the simulator and on the device. Both worked. I submitted the final app and it is currently live on the App Store. However, after deleting the development version from my device and downloading my app from the App Store to test IAP, the app immediately receives an "Invalid Product ID:" error. Once again, the development version worked using the test user account, but live on the

Storekit / In App Purchases: Does the “Environment: Sandbox” tag disappear when I submit my app to the app store?

与世无争的帅哥 提交于 2019-12-08 17:50:14
问题 This is my first time implementing In App Purchases. During development and testing of my In App Purchases, I see the following alerts during the purchase process: My In App Purchases work perfectly and the app is close to submission. Do I have to do something before I submit the app (to make the "Environment: Sandbox" tag go away) or is all of that handled automatically as I submit? 回答1: You don't have to do nothing. This is just indication that you are using sandbox when your app will be

In-App Purchase, SKProductsRequest returning 0 - Products still in Review

寵の児 提交于 2019-12-08 17:19:08
问题 I have followed the tutorial: Introduction-to-in-app-purchases I think I have everything done exactly how it is shown. But, my in-app purchases are still "Waiting for Review" in iTunes connect. When testing my app, I don't get errors, I just get 0 products returned to me. I have submitted the app then rejected the binary. Do my products have to be approved first? I am using a development profile, is this incorrect? It has been more than 24 hours and I can't figure out why they won't show. My

StoreKit for iOS - Subscriptions Question

↘锁芯ラ 提交于 2019-12-08 08:21:06
问题 I am using the new subscription model with StoreKit in a test application of mine, but I have a few questions: If the user cancels the subscription, how am I informed of this? Or do I have to monitor the date myself (using the value transactionDate ) If the subscription is cancelled, the user can now longer restore this purchase if the subscription is expired right? Thank you! 回答1: You aren't informed if the user cancels. When you validate a receipt, Apple should give you a receipt for the

SKErrorUnknown while testing in-app purchase

戏子无情 提交于 2019-12-08 07:48:56
问题 I am working to implement in-app purchase for a project and everything went well except the actual test purchase: - I created the app in iTunes (unique ID, submited a binary, then rejected it because this is not the final one) - created the in-app purchase items - implemented the code - created the test account What is working: - I got a valid product from store - I got the "Confirm your subscription..." popup - I got the "Share your information ..." popup - and then i got this error: Code=0

How do you determine the customer/user when receiving an Apple statusUpdateNotification for auto renewing subscriptions?

纵然是瞬间 提交于 2019-12-08 07:02:45
问题 So, Apple has implemented their server to server notification for various events in the subscription lifecycle. I was very excited to get going on this but then it seems there is some sort of glaring thing I'm missing. I'm not sure how to match the notification data to a user on my side. I'm surprised there isn't a uid/apple id passed with the notification to match on. Maybe I'm supposed to be using the original_transaction_id but its unclear whether that is unique. Does anyone know what to

In app purchase

守給你的承諾、 提交于 2019-12-08 06:09:09
问题 I want to use the in-app purchase in my app. Right now, I've created the half portion of my app. As far as I know there are two ways to deliver the app to the buyer using the in-app purchase. The first one is by creating your app fully functional, then if your app wasn't yet purchased, some features of this app should be locked and if it was been purchased it should be unlocked the features. The second way was by using a server side delivery.. I don't need to mention about it . I'm planning

Product Identifiers Are Valid On One Phone But Not Another

别等时光非礼了梦想. 提交于 2019-12-08 02:04:20
问题 I've begun testing the In App Purchase functionality of my phone. It works great on my phone, every product id I submit works fine and comes back as valid, but as soon as I tested it on my coworkers phone, each product id came back as invalid. I'm probably over looking something and I've followed a bunch of tutorials online, but is there any reason for storekit to reject valid product id's on one phone and accept them on another? Note that I've ensured that there are no parental control

Multiple SKPaymentTransaction

江枫思渺然 提交于 2019-12-07 21:44:42
问题 I implemented StoreKit into my application. What I noticed is that for some of my test accounts, there are multiple SKPaymentTransaction 's in the paymentQueue. This is causing the SKPaymentTransactionObserver to be called multiple times with a SKPaymentTransactionStatePurchased This problem seems to manifest more when I stop the app mid upgrade, or put the application in the background. I am not sure what is causing the multiple payments, or is this expected behavior? Also, am making sure to

payment.applicationUsername in iOS 7 StoreKit for In-App Purchases

爱⌒轻易说出口 提交于 2019-12-07 16:10:37
问题 In the WWDC video "Using Store Kit for In-App Purchases", the speaker describes adding a payment.applicationUsername as a hash of the customer account name. payment.applicationUsername = hash(customerAccountName); I cannot find documentation on this anywhere. I don't think the customerAccountName is the same as the GUID, so where would we obtain this information? 回答1: The "customerAccountName" value, and the hash function can be different from developer to developer. Apple provides a good