Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 74

David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
01/06/16 07:18 PM (8 years ago)

Disabling iOS Ads

It has been a while since I have updated my apps and I have made that a New Year's Resolution. One of the things I know I'm gonna run into is that my old method of disabling ads using the IAP plugin isn't going to work when I compile the apps with the latest X Code. Is anyone successfully disabling ads within Buzztouch apps? Thanks, Dave
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/07/16 10:50 AM (8 years ago)
Why isn't it going to work? Have u tried it after posting this?
 
David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
like
01/07/16 11:41 AM (8 years ago)
The last time I compiled an app with the latest version of X Code (which was at least one update ago), the code quit working. The reason I posted is that I assume that everyone has ads on their apps and there are enough coders around that somebody must be doing an IAP to disable ads and was hoping for help. Heck, I would pay someone to custom code it as long as I was told exactly what was done so I could implement on all my apps. I'm kinda surprised nobody has created a plugin specifically for this.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/07/16 11:48 AM (8 years ago)
Are you using the in app billing plugin? If so search for 'in app billing' in the forum. I've seen a couple of posts over the last few months for it. What errors are you getting?
 
David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
like
01/07/16 01:11 PM (8 years ago)
I'm using the in app purchase plug in. All the posts I have seen using that plugin are old. I will search for in app billing plugin information.
 
David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
like
01/07/16 01:15 PM (8 years ago)
Just searched for posts on in app billing and nothing about disabling ads. Still looking for help . . .
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
01/08/16 07:30 PM (8 years ago)
So the plugin saves a boolean variable to disc to indicate whether an iap was purchased or not. The key here would be to check if the boolean variable is true (for purchased) or false (not purchased ) prior to making the function call to show the ads. You just need to know the name of the variable to check for. Off the top of my head I can't remember which name I used, but it is either the screen name of the iab plugin or the sku/productID. The boolean was saved to disc using NSCoding and not NSUSerPreferences. You will need to import that and NAD_iapItem.h in order to check the the value.
 

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.