Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 85

feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
10/22/14 08:40 AM (9 years ago)

IAP Consumable

Hello all How can I create an In app purchase consumable screen. After the user purchases they will be brought to a screen. I want the user to have to pay everytime they want access to this screen. Has anyone ever used IAP consumables? If so how did you do this?
 
mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
like
10/22/14 11:53 AM (9 years ago)
To create consumable IAP you have to select Consumable products in In App Purchase product adding page. Apple will not provide you restore feature by default for Consumable products. If you also want restore feature you have make it manually by creating your own web service to handle that. Hope this explains your problem.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/22/14 12:21 PM (9 years ago)
Replied to your email. :-) Cheers, David Van Beveren http://btmods.com/chat ^ Chat with other BT members live! http://btmods.com/hire ^ Hire MrDavid for one of his services!
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
10/22/14 12:21 PM (9 years ago)
Just emailed angry ninja lets see what he says. Thanks David.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/22/14 01:09 PM (9 years ago)
Use RMStorekit 3 lines of code. Nad uses it in his in app purchases plugin for iOS
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
10/22/14 01:11 PM (9 years ago)
Hey kittsy I looked at that it says for non consumables IAP
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/22/14 01:14 PM (9 years ago)
https://github.com/robotmedia/RMStore That plugin use this it's incredibly easy to use. @mobileSritoma a consumable means used and it's gone there will never and should never be a restore. Like extra quiz lives, virtual currency
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
10/22/14 04:15 PM (9 years ago)
Hey Feraco, Just replied to your email. Let me know if you run into an issue and I'll send over some code from my published apps utilizing consumable IAP's.
 
mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
like
10/24/14 01:42 PM (9 years ago)
@Kittsy: Yes, I know that consumable products are one time use only. Once consumed it will be gone. Say I have an application which is related to medical. User can purchase patient limits via IAP. Say a doctor purchases 10 patient limit. Once it is exhausted he has to purchase again 10 patient like this way. One day the doctor's device crashes and everything is gone. If he again installs the app then we have to provide a restore feature to get back all patient limits. So for that we have to handle restore feature manually by maintaing a web server of our own. If I am wrong please correct me.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/25/14 01:52 AM (9 years ago)
My apologies in that situation it would be true. RMStore does have persistence capabilities using the Keychain wrapper. in Feraco's case though it's buy straight through to screen gone
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.