in app purchase - consumable product - iphone

I am implementing in app purchase in my application. as per the requirement product should be purchased every time I pressed "BUY" button in my application.
For that on itunesconnect web site in which kind of category my product will fall? Consumable or non-consumable.
I am confused on selecting the category.
I have read some documents for this but still its confusing.

Apple's docs say
Consumable products must be purchased each time the user needs that item.
And you say:
Product should be purchased every time I pressed "BUY" button in my application
Don't you feel like it's the same sentences?
So, yes, you should choose consumable.

That means your product is consumable. Check this link for all the details you need.

Related

How to dispalay facebook ads based on product category?

I have an online shop in which I am selling multiple products eg tv, radio, shoes, computer, something like this here: online shop
I want to track products abandoned in a cart, meaning the user decided not to buy a certain product.
Now I am able to display ads but general ads, not ads for the specific product.
In the image below u can see the structure.
if the user bought a product we don't show anything, only if the user abandoned the cart.
Assume user wanted to buy a Jordan added this product to the cart but at last, decide not to buy, so I want to display Air Jordan promo video to this user in facebook.
I have a few questions:
1. Is it possible to achieve what I want?.
2. Do I need a rest API for this to work ?.
In short How to display facebook ads based on product category eg shoes, electronics etc?
What do I need to do to get what I want?

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.

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

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.

Tracking in-app purchases & multiple devices (iOS)

I want to implement in-app purchases to my app. I will be using the built-in product model where the IAP will unlock features within the code. My questions are:
how do I track the a purchase on a device (as to unlock the feature)? NSUserDefaults? The guide vaguely states "application preferences". They are not referring the Info.plist, as this can't be written once on the device. I also (obviously) want the user to back this up.
how do I enable the feature across mutiple devices on the same iTunes account? Do they have to "purchase" the feature on the other devices, or is there another way?
Thanks and regards,
--John
1) NSUSerDefaults is a good solution
2) Use a non consumable product for that http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/APIOverview/OverviewoftheStoreKitAPI.html#//apple_ref/doc/uid/TP40008267-CH100-SW1
User have to re-buy the product in each device but pay just the first time. A pop up "you've already buy this item" appear and you receive the same receipt.