storekit

How to detect and verify a renewal for an auto-renewable subscription?

一世执手 提交于 2019-11-28 16:43:44
So I have setup an auto-renewable subscription for my app with a period of 1 month, which equals 5 minutes or so in the sandbox. In the client app I subscribe, send the receipt to my server, it gets verified and I put a record in my database that this user has a subscription. My question is how do I check if this subscription has been renewed? I have read the docs and can't figure out what should I do. Here is where I am so far: The initial receipt that gets sent to my server is verified with a status 0 , great. I also get latest_receipt , which I replace in my database with the oldest receipt

Check if an Auto-Renewable Subscription is still valid

不羁岁月 提交于 2019-11-28 09:49:12
I would like to check the Auto Renewable Subscription status whenever I open the app. This is to make sure that the user is still subscribed to the service. How do I achieve this? Any thoughts? Thank you P.S.: I am using SwiftyStoreKit Ramis Here is several ways to do receipt validation to check is user granted to subscription. Here is two ways of doing it correctly: Do receipt validation locally as it is written here . Do receipt validation remotely as it is written here . It is mentioned that receipt should not be sent to App Store white an app. Short summary: Your app sends receipt to your

iPhone storekit sandbox stopped working

百般思念 提交于 2019-11-28 08:50:52
Bug reported as fixed by Apple, see accepted answer below ... UPDATE MON AUG 23rd 10:00 GMT Although the bug report with apple hasn't been closed yet, it now seems to be working (at least for a couple of us) OK. It could be they have nailed it, or the fix is in testing, and I'll report back when (if) I hear anything more from Apple. UPDATE FRI AUG 20th Just to say I've had an email back from Apple Engineering (21:20 GMT) and they have said: "Thank you for reporting this. We're aware of this issue and are currently working on a fix." So hopefully there will soon be a resolution! [ update to

SKProductsRequest delegate methods are never called [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-28 07:24:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . This used to work for me but is now not working anymore and I can't figure out why. I have in-app purchase setup in my app. I confirmed that I have a correct set of product identifiers, matched by corresponding in-app purchase items in itunesconnect. The call goes out to Apple view [productRequest start] , but I

Can we check if a user's In App Purchase has been refunded by Apple?

淺唱寂寞╮ 提交于 2019-11-28 06:55:01
Situation: - User makes an IAP and is awarded some content, we store the users device id to ensure they can access this content whenever they want. - User decided they do not like the content, so they call Apple and get a refund. - User can still access the content, even though they have been refunded for their IAP Problem: We don't want the user to be able to access this content anymore. This could become a loophole that they would take advantage of. (unlock content, then get refunded and keep their access to said content) Question: Is there any way for us to check if a user has been refunded

(iOS + StoreKit) Can I detect when I'm in the sandbox?

人盡茶涼 提交于 2019-11-28 06:22:35
I've got in-app purchases working just fine, and I'm going the server validation route. The server needs to know whether I'm in the sandbox or not, so for now I'm just sending it a "&sandbox=1" parameter. Of course when the full version of the app is out I won't be sending this parameter. I'd rather not have this hardcoded in my app, as that will make testing difficult in the future, and it's one more (big) thing to remember to change before submitting builds to Apple. Is there a way I can ask StoreKit if I am in the sandbox so I can then determine whether or not I need to send this parameter

iPhone In App Purchase - response.products are still empty?

送分小仙女□ 提交于 2019-11-28 04:20:15
Basically, I've tried to set up in app purchases on a test app before I implement them into a proper app that my company is working on. I've read the Store kit pdf and other snippets about a 1000 times, but the products are still being returned as empty. Here's exactly what I've done so far: Setup test app and In App Purchase test items I created a new app id for 'Test App One' on my company's developer portal in the iPhone Dev Centre. I made sure that the prefix was com.mycompany.testappone to ensure that in app purchases could be configured. Staying in the App IDs section, I configured in

in-app purchase in Swift with a single product

元气小坏坏 提交于 2019-11-28 03:09:38
Is there a simple way to implement a in-app purchase in swift for a single product? I want a button that triggers the in-app purchase like a [ad-removal] or [unlock-premium-content] I can't understand the full logic of it. I'm trying to follow and translate this tutorial from [Techotopia] http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial But It's my first time with the StoreKit Framework, and also with Swift. I just want to know the logic of the in-app purchase transaction with the Swift StoreKit Framework. Thanks! Step 0: In your iTunes Connect account, create an In-App

StoreKit SKProductsRequest Crash

心已入冬 提交于 2019-11-28 00:42:37
I use the following code to request a list of products as per the In-App Purchase Programming Guide. It used to work fine in my iPhone application, however now it crashes every time the product list is requested. The delegate method (void)productsRequest:(SKProductsRequest **)request didReceiveResponse:(SKProductsResponse **)response is never called. SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:@"my.product.identifier"]]; [request setDelegate:self]; [request start]; As I said, it worked perfectly fine, then just stopped working. This

Following in app purchase, app crashing on startup. productIdentifier=nil?

跟風遠走 提交于 2019-11-27 20:32:28
I have a few users who have reported that after attempting an in app purchase the app is now crashing on startup. I have asked them to delete and reinstall the app which has not worked, and attempted to ask them to go into airplane mode to stop any network communication that has not worked. I am unable to replicate the error in anyway on my devices and my in app purchase goes through just fine in sandbox and production modes. My thought is that somehow their transaction received a nil productIdentifier which is causing the startup crash but I am not sure what transaction observer methods get