I have an App that allows for an inApp purchase. Works great, except if a user purchases it from the App Store (not from within my app), and then goes into my App, it does not know it was purchased. How can I tell if it was purchased already?
My App is live but I have this newly discovered bug so hopefully someone can answer this for me soon!! -:)
Thanks for the help!
You could use the restoreCompletedTransactions of the SKPaymentQueue Class to lookup which items the user already purchased and take further actions to deliver the items/functions to your user.
The documentation is your friend ;-) http://developer.apple.com/library/ios/#documentation/StoreKit/Reference/SKPaymentQueue_Class/Reference/Reference.html%23//apple_ref/doc/uid/TP40008257
Related
This is the text from AppStore for Rejection.
We noticed that your app offers a subscription with a mechanism other than the in-app purchase API.
Actually app is not having any third party for payment or no any In app purchase but if i searched for InAppPurchase OR Subscription word in project then i can found methods inside the FBSDKLoginKit and FBSDKCoreKit.
In App Purchase is OFF in Capabilities.
In App Purchase is ON in Certificates. (Which is by default ON)
But They are saying we are offering subscription other than In app purchase which is actually not there.
Does any one have solution of this type of issue?
Please help guys!
Thanks in advance!
You need to resubmit to Apple for review and mention that App does not have any Subscription/In App purchase, and that you are using Facebook SDK that has subscription support but you are not using that feature in your app.
I'm not sure if this will successfully make your application pass the review process but it may help
I want to implement Inapp purchase for multiple products in my app.
Do I need to register All the products at iTunes? and is the code procedure is same for multiple as for single product?
I don't know what is the requirement of restore button in Inapp.
If anyone having tutorial or code for multiple product inApp then please provide.
Thanks
You need to read this. You will get all your answers InApp Purchase
You need to register all your product in iTunes store for multiple InApp purchase.
What is the requirement of restore button in Inapp ?
If user accidentally deleted the app from their device. If he/she again downloaded or installed the App. They won't get the previously purchased items, then he/she should again purchase them for using it. In that case you need to provide an option for restoring the already purchased items.
This is a nice tutorial
I have an application which is using a consumable in app purchase for the products. Now I want to add some more portions to the existing application which can be used only if the user is subscribed for that option. So is it possible to use both type of inapp purchases in a single application. And can anybody provide an idea about how I can achieve this.
So you want to hide some in apps unless they have purchased a special in app?
Can't you just check in your code if the first one has been bought? Then display the rest.
You just go to iTunes Connect, to your app, and then to manage in-app purchase section.
You can add any amount of purchases there. Then your new in-app will be reviewd by Apple and you would be able to update your app with new code for retrieving that new in-app.
I am trying to add in app purchases to an app that is already for sale on the app store for the next update. I have never added any in app purchases to it before.
I am using MKStoreKit to handle the in app purchases so I figure everything is as it should be on the coding side of things.
When my app starts up I query the list of available in app purchases, this successfully returns the list of in app purchases (just two at the moment) and the prices of them.
I have a button in my app that sends a purchase request, I pass in the appropriate product ID. This consistently gets cancelled every time and I get the error message
User cancelled transaction:
in the log.
From reading other blogs and posts I have come to the conclusion that it is because my in app purchases aren't cleared for sale in iTunes connect, they currently say "Waiting for Review".
I have tried everything on this check list to try get this to work http://troybrant.net/blog/2010/01/invalid-product-ids/ but still nothing.
I submitted an app and then a few hours later developer rejected it because I heard this worked for some people.
Anybody know how I make the in app purchases cleared for sale in iTunes Connect?
Just spotted that I never closed this question. The reason this was happening was because Apples servers were acting up at the time. Game center sandbox was also effected at the time. I left it alone for a couple of days and it started working when I got back to it.
Actually you should have tested the in-app before submitting them for review. Afaik, as soon as they are in-review state, purchases with the test account might not work. You could try and create another in-app item for testing purposes, just create it and try to purchase that (using your iTunes Connect Test account) without submitting it for review.
The cleared for sale status can be set in the pricing and availability section of the respective in-app item.
I am new in iPhone development.
if i want to buy only an image within the application through Apple - In App purchase Payment mode. So what would be the method for this?
NOTE: Dont Want to buy the whole Application.
Thanks in advance.
Refer this blog of In App Purchase
Also refer the apple documentation
You keep the image locked and ask the user to make an in app purchase for it to unlock.