In-app purchase confusion in iPhone: is it possible to use both type of in-app purchases in a single application? - iphone

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.

Related

How to implement Inapp Purchase for multiple products?

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

Using a non-consumable in-App purchase with ID's

I'm using in-App purchases in my App on behave of getting some sounds from the App to the iPhone as a ringtone.
I've used 'Consumable' as the type for in-App purchase so that the user would be able to buy a ringtone and download it directly.
However this App got rejected by Apple because they want this function to be non-Consumable (so you would be able to retrieve this ringtone more than once). I only don't know how to set this up in my App because there are more than 200 possible ringtones. The actual buying is not the difficult part but as a criteria for in-App purchases you need to be able to restore previous transactions. As I'm only using one product identifier I think I would not be able to identify which ringtone has been purchases when restoring.
So my final questions:
1. How can I identify which item is bought (i.e. by using tags in the purchase)?
2. Am I able to use only 1 product identifier for this In-App purchase. Or do I need to make a productIdentifier for each and every ringtone?
You have to create a non-Consumable product for each ringtone, each one with a different identifier, if Apple is refusing your app I think you have no other choice.

How to add a new in app purchase to a project which has already using inapp purchase in IPhone?

I have an IPhone application which is having a non consumable in app purchse already integrated.Now i wanted to add a subscription based in app purchase to it without deleting the existing in app.Can anybody help me with the steps needs to do achieve this.I need to do it as a seperate in app purchase.Or adding a product to the existing in app purchase?
You just add it in iTunes Connect,am not i'm right?

Adding in app purchases with purchase automatically turned on for some users

I want to revamp the purchase model on one of my iphone apps to use in app purchasing to unlock the full featured app instead of having two separate apps. Is there a way to do this so that anyone who has previously purchases the app can get the purchase for free automatically?
The strategy that I used is to create a NSUserDefaults for previous purchasers of the application. Then I put that version in the app store for a month. I picked a month so that hopefully that all users had a chance to up date the app. After a month I put the in app purchase feature into the app and put that in the app store.
When I test to if I should use any in app purchase content I also check to see if the NSUserDetaults I created in the previous version is set.
There is not currently any way for the user to be given the In-App Purchase item for free.
However, if you can detect that the user upgraded from the old version (e.g. by examining NSUserDefaults) you can easily enough have your "did they purchase the full version?" check return true for that case too.

iphone - Is it necessary to create new app in itunes connect for in-app purchases

I'm already having a free application in app store (itunes connect)
Now I want to add in-app purchase for that.
So, I created a new product in in-app purchase and trying to test it. Its saying the product id is invalid.
But I created new app in app store with product id's and when I'm testing, its working fine.
Is it necessary to create new app to distribute my old app with in-app purchases. Can't I add in-app purchase for already existing application?
Yes, you can add in-app purchases to existing apps that previously did not support them.
Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work.