Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 18    Views: 102

Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
04/16/13 02:36 PM (12 years ago)

Easy In App Purchase

I have just bought this and added it to my latest project. The only thing I am wondering is why the hell didnt I use this before!?! Absolutely brilliant contribution to the market and I for one have tried to hard code IAP without success. Its an absolute minefield but this offers a wonderful solution. Simply wonderful.
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
04/16/13 02:44 PM (12 years ago)
yeah it is! I am just trying to figure out how to make a "remove ads" feature
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
04/16/13 02:52 PM (12 years ago)
I'm trying to work out how to use it for downloadable content.
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
04/16/13 02:52 PM (12 years ago)
That's why I call it EASY iAP. -tM
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/16/13 02:54 PM (12 years ago)
I'll post a how to for ad removal when I get a chance. Did this in a recent app
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
04/16/13 02:56 PM (12 years ago)
Yeah I've been meaning to create a sort of "How To" Video for my plugin (including ad removal), but haven't gotten around to it. What I'd really like to do is just record a session on Skype or something of me running through with somebody how to set it all up. So if anyone would like free labor PM me. -tM
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
04/16/13 03:01 PM (12 years ago)
I'm not sure this could be used for downloadable content, certainly not easily. I spotted the ad removal which I think is a good idea so long as other features are added. I cant see a situation where I'd ever pay solely to remove ads, unless they were in the way of the features.
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/16/13 04:03 PM (12 years ago)
i'm struggling with this :o(
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/16/13 04:12 PM (12 years ago)
I made a whole "Disable Ads with IAP" PDF tutorial to be posted on BT - sent it off to David and then to Stobe, but I guess it got lost in the mix. The code I used would be outdated now anyway with the recent Xcode package update Maybe I'll upload an updated one to dropbox and post it here in a bit
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/16/13 04:42 PM (12 years ago)
Ok here is an updated tutorial on disabling ads using in-app-purchases - https://www.dropbox.com/s/5ftv1x99vmmkena/Untitled.pdf The text in the screenshots hasn't been updated, but the pics are just there to give a better idea of where to paste the code. Let me know if any parts are confusing Here is an app that is currently using this method - https://itunes.apple.com/us/app/fan-club-one-direction-edition/id517597110?ls=1&mt=8 @Chris1 - You're much more of a coder than I am so I wouldn't be surprised if you have a better way of going about it. Feel free to post it if you do
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/16/13 05:20 PM (12 years ago)
nice Absentia - your method is a little bit different than mine, but the general idea is the same. Initialize an Easy In-App Purchase screen, sending a variable along the way that says "this is for disabling ads", and have the EIAP plugin check for that variable. If it exists, save a key to NSUserDefaults that can be checked against later.
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
04/16/13 07:39 PM (12 years ago)
I'm already saving the Product ID to NSUserDefaults (with the key being the apple id (i.e. "com.mycompany.myproduct")). -tM
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/16/13 08:57 PM (12 years ago)
What happens when there's multiple screens in the same app? They can't all have the same key.
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
04/16/13 09:28 PM (12 years ago)
@chris1 The Key is the Product ID (i.e. "com.mycompany.myproduct"). And there can never be duplicates of these. All you have to do is to check that what it returns is not null or @"". -tM
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/16/13 10:05 PM (12 years ago)
Sorry - read it quickly and confused what you were saying with the app Id! Yep, that saves a step in saving info to the disk.
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
05/21/13 01:21 PM (12 years ago)
@Absenta There is an issue i am having with your EIAP Modification. Here is the code I get a warning on the method getStyleValueForScreen saying not found for return type (defaults to id) This is the statement below if([[BT_strings getStyleValueForScreen:self.screenData:@"navBarTitleText":@""] isEqualToString:@"Disable Fullscreen Ads"]){ //the block of code is fine. no need to put it here }
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/21/13 02:18 PM (12 years ago)
This is old code, not updated for the new Xcode
 
RiverSteve
Android Fan
Profile
Posts: 43
Reg: Jun 01, 2013
Whanganui, New ...
11,080
like
06/13/13 02:15 AM (12 years ago)
ok, only posting so I can look later to know how to remove aanoying adds.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
08/26/13 06:52 PM (12 years ago)
OK I am totally stuck with how to implement this. I have looked at topics using search, but can't figure out how to even get started. Can anybody help get me started?
 

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.