Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 71

David73
Aspiring developer
Profile
Posts: 66
Reg: Jan 12, 2013
Texas
660
08/09/13 07:15 AM (12 years ago)

Removing Ads

I have followed the fantastic procedure detailed in this thread: http://www.buzztouch.com/forum/thread.php?tid=861117A243764FC08CB2D8F&currentPage=1 Unfortunately, I am still having problems. I get through all the steps without any errors and everything compiles fine. I go to the purchase screen and it comes up and I can do the purchase using my test account. The problem is that nothing happens after that. It also crashes the app. When I restart it and do it again, it tells me I have already purchased it. It appears that it isn't setting the bit saying the purchase was made. Any ideas? Here is what I have in the Easy_in_app_purchase.m file that should be setting the purchase: -(void)goToPurchasedScreen{ [BT_debugger showIt:self:@"goToPurchasedScreen"]; purchasePageFlag = YES; //If disabling ads, save key and refresh app if([[BT_strings getStyleValueForScreen:self.screenData:@"Remove Ads":@""] isEqualToString:@"Disable Fullscreen Ads"]){ //flag this as the current screen fbschedule_appDelegate *appDelegate = (fbschedule_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"noAds"]; [[NSUserDefaults standardUserDefaults] synchronize]; [appDelegate downloadAppData]; //load next screen if we have a next screen nickname set... }else if([productScreenNickname length] > 1){ fbschedule_appDelegate *appDelegate = (fbschedule_appDelegate *)[[UIApplication sharedApplication] delegate]; BT_item *screenObjectToLoad = [appDelegate.rootApp getScreenDataByNickname:productScreenNickname]; [BT_viewControllerManager handleTapToLoadScreen:self.screenData theMenuItemData:nil theScreenData:screenObjectToLoad]; } } I changed the "navBarTitleText" to what I had set in the plugin. I tried leaving it as "navBarTitleText" as well and it did the same thing. This is what I have for the ad removal code: if(![[NSUserDefaults standardUserDefaults] boolForKey:@"noAds"]){ [[RevMobAds session] showFullscreen]; } Any help would be greatly appreciated
 
Adam
Aspiring developer
Profile
Posts: 247
Reg: Oct 23, 2010
Southern Califo...
4,470
like
08/11/13 01:32 AM (12 years ago)
I need help also.
 

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.