skproduct

StoreKit on iOS - autorenewable subscription - How to know whether it is a free trial or not?

自作多情 提交于 2020-02-11 10:54:19
问题 In iTunes Connect it is possible to give a free trial period for autorenewable subscriptions. App > Manage In App Purchases > Subscription Basic > 1 Month > Offer a free trial? How can I get this information on the client? SKProduct does not have any information about this as I can see. Since we're having a marketing campaign it is very confusing for the end user to not see information about the product has a trial period. Of course it is possible to fetch this kind of information from a

iOS in-app purchase never completes

一笑奈何 提交于 2020-01-03 13:41:07
问题 I am trying to create an in-app purchase for my app, but I am running into issues. The payment process starts, and the user has to enter in their password; however, the payment never actually completes. I know I have the right identifier set up in iTunesconnect, and I also created a test account to buy the in-app purchase with. When I run the code below, I get the following messages outputted: "User can make payments" "Products are available" "Transaction state -> Purchasing" After entering

iOS7 xCode5 how to resolve “invalid product ID” for in app purchases in 2014?

。_饼干妹妹 提交于 2019-12-24 01:13:24
问题 I'm trying to implement in-app purchases in one of my apps, and have an issue where I get no products returned when I send a product request for sandbox testing. I see a lot of very old posts, like this one (invalid product id from 2010). What am I doing wrong with my in app purchase setup? Is there any recent tutorials on how to configure xCode5 to use in app purchasing? - (void)requestProUpgradeProductData { NSSet *productIdentifiers = [NSSet setWithObject:self.productID ]; productsRequest

In App Purchase - when trying to buy consumable product again - this in-app purchase has already been bought

对着背影说爱祢 提交于 2019-12-18 19:08:32
问题 I have ca onsumable product in my iTunes connect, and when I'm trying to buy it twice (on my iPhone), it tells me that I already bought it. But this is the whole point of consumables, that users can buy them over and over. Any suggestions? 回答1: This happens if you haven't marked the transaction for the original purchase as finished, which you should do in your - (void)paymentQueue:(SKPaymentQueue*)queue updatedTransactions:(NSArray*)transactions method after you've successfully processed the

How to get SKProduct local price in US Dollar?

喜夏-厌秋 提交于 2019-12-11 01:13:20
问题 I need to convert SKProduct local price to US Dollar. That means, SKProduct give me local based currency. But i need to show US Dollar rate in every country. 回答1: Try these libraries DDUnitConverter and MGCurrencyExchanger or try this code SKProduct *product = [self.products objectAtIndex:indexPath.row]; NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; [formatter setNumberStyle:NSNumberFormatterCurrencyStyle]; [formatter setLocale:product.priceLocale]; currencyString =

Updating price of in app purchase

谁都会走 提交于 2019-12-08 03:38:03
问题 I have a custom alert view that pops up in my app asking the user if they'd like to purchase one of my in app purchases. In the alert view, I also list the price of the in app purchase which I derive from the SKProduct associated with it. The thing is, now I want to change the price of my in app purchase, but I'm collecting the product data when the app launches in the app delegate, so how should I go about this? (does the app delegate only launch when the first time the user launches the app

Testing localized in-app purchases

帅比萌擦擦* 提交于 2019-12-01 04:24:29
问题 Running the app with the Scheme set to another language does not affect the SKProduct received from iTunes in testing. The only way I’ve found to affect change is to create a new Sandbox Tester User in iTunes Connect with an iTunes Store for each... and every... language you might want to test. Then - you should NOT login with that user on your device through Settings. Run your app and login with the test user when asked. This successfully got my phone to be defaulting to the App Store for a

In App Purchase - when trying to buy consumable product again - this in-app purchase has already been bought

穿精又带淫゛_ 提交于 2019-11-30 17:26:09
I have ca onsumable product in my iTunes connect, and when I'm trying to buy it twice (on my iPhone), it tells me that I already bought it. But this is the whole point of consumables, that users can buy them over and over. Any suggestions? This happens if you haven't marked the transaction for the original purchase as finished, which you should do in your - (void)paymentQueue:(SKPaymentQueue*)queue updatedTransactions:(NSArray*)transactions method after you've successfully processed the purchase. The method you need to call is [[SKPaymentQueue defaultQueue] finishTransaction:transaction] .

StoreKit on iOS - autorenewable subscription - How to know whether it is a free trial or not?

北城余情 提交于 2019-11-29 09:08:21
In iTunes Connect it is possible to give a free trial period for autorenewable subscriptions. App > Manage In App Purchases > Subscription Basic > 1 Month > Offer a free trial? How can I get this information on the client? SKProduct does not have any information about this as I can see. Since we're having a marketing campaign it is very confusing for the end user to not see information about the product has a trial period. Of course it is possible to fetch this kind of information from a server I maintain, but then we'll have the overhead with updating both our server and iTunes Connect. So I