Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 39    Views: 366

Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
03/29/13 02:46 PM (12 years ago)

Awesome things you can do with Scringo, Easy IAP, and RevMob

Video - http://www.youtube.com/watch?v=CvfwDfNeOM0&feature=youtu.be I've been putting a ton of work into the next update for my app which is going to feature Scringo and a "Pro" in-app-purchase. Since Scringo is going to come bundled in every project, I thought you guys might like to see what can be done with a little extra tweaking. This plays off some of the stuff that Kittsy posted a while back. I've also implemented In-App-Purchase links all over the place, including in the Scringo activity feed. Here is a transcript of some of the features shown in the video - -- After logging into Scringo, I open the image gallery and you can see that the "like", "save", and "sort by" buttons are all locked. Tapping them causes an alert to pop up that will take the user to the IAP screen if they choose. -- Then I go to the video menu - there are two options - the first one, "videos", is free. I tap the second one, which is locked, and it displays the same pop-up message that the image gallery did. -- Finally I go to the quiz (I have it set to 1 question for testing purposes) The finish screen , again, gives the option to unlock the pro version which features 175 more questions. Here I finally make the purchase. -- Making the purchase does many simultaneous things - it unlocks all three buttons in the image gallery, unlocks the pro video section, disables fullscreen and banner ads, and unlocks 175 more quiz questions. I also posts an activity feed. -- You can see that the In-App-Purchase posts an activity in the Scringo sidebar. When the "Buy" button is clicked it gives the option to purchase. This was also just for the purpose of the video -- I have it set so that if the user has already purchased, they will instead get an "already purchased" message -- I then show one other Scringo feature that I love, the like button in the image gallery. Clicking it posts the image to the activity feed. Users that see it can also like it, or they can share it. -- The last thing I showed is just an idea I had for RevMob that I have yet to test, but I think it might work out well. I connected RevMob's AdLink ad type to a "More" button like I usually do, except this time I set it up so that it can only be accessed once a day - I used the Appirater "remind me later" code for this purpose. I'm hoping this will make it seem like less of an "ad", and I'm also hoping it will keep users coming back. I think that covers everything. I don't quite have the time to make a tutorial for all of this, but I'll gladly answer any questions in this thread
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/29/13 03:12 PM (12 years ago)
Let me know when you're done ;) I've yet to immerse myself in scringo just yet. Cheers! -- Smug
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 03:17 PM (12 years ago)
there it is :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/29/13 03:24 PM (12 years ago)
Looks rather involved. Can't wait to dig in! :) Cheers! -- Smug
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/29/13 03:26 PM (12 years ago)
Dude...I don't know what substance you are on.... but I need a subscription sent to my house. But seriously... You've implemented a lot of the things I had questions about with Scringo. Especially since I been deciding how to balance those features with something like socialize. Hopefully you will post directions for setting up the like button stuff. ('Creating events' is something I haven't quite gotten the grasp of yet). But I really want to use the activity feed. Nicely done.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 03:29 PM (12 years ago)
@Uelsimon - thanks, I'll post the code for the like button in a bit
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/29/13 03:34 PM (12 years ago)
Shweet
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 04:04 PM (12 years ago)
@Uelsimon - here you go. I only know how to do this with the Mac Image Gallery plugin - hopefully you're not using the thumb viewer because I'm clueless with that one. Paste this code in Mac_image_gallery.m inside the updateNavigation method. First you will need to import <Scringo/ScringoAgent.h> and <Scringo/ScringoLikeButton.h> Paste the main code exactly where it is shown in this screenshot - http://www.pixobit.com/wp-content/uploads/2013/03/imageeee.png NSString *likeIt = [thisImage.jsonVars objectForKey:@"imageURL"]; ScringoLikeButton *likeButton = [[ScringoLikeButton alloc] initWithFrame:CGRectMake(40, 300, 50, 27)]; UIBarButtonItem *likeItButton = [[UIBarButtonItem alloc] initWithCustomView:likeButton]; ((UINavigationController*)[appDelegate.rootApp.rootNavController.retain retain ]).navigationBar.topItem.rightBarButtonItems = [NSArray arrayWithObjects:likeItButton, nil]; [likeButton updateLikeObject:likeIt type:SCRINGO_APP_LIKE_IMAGE description:@"YOUR_DESCRIPTION"];
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
03/29/13 04:19 PM (12 years ago)
wow that is awesome you got skills
 
Jerry
Aspiring developer
Profile
Posts: 51
Reg: Aug 07, 2012
Dallas
3,160
like
03/29/13 04:43 PM (12 years ago)
That's really slick Jonathan. So once they buy the IAP, the code goes through and removes all the banner ads and makes everything available? Is that hard to do?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 05:14 PM (12 years ago)
Not really - I added some code into Easy_in_app_purchase.m, so that when the purchase is made, it stores a key which will always be there as long as the app isn't deleted. In the gotoPurchasedScreen method I deleted all of the default code and replaced it with this - -(void)goToPurchasedScreen { [BT_debugger showIt:self theMessage:@"goToPurchasedScreen"]; purchasePageFlag = YES; //flag this as the current screen onedirectionv2_appDelegate *appDelegate = (onedirectionv2_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; [ScringoAgent postToFeed:@"just unlocked the Pro Version!" withImage:@"http://www.pixobit.com/wp-content/uploads/2013/03/unlock.png" withDescription:@"Get the Pro Version today for the best 1D Fan Club experience!" withSubDesc:@"Only $0.99" withActionVerb:@"Unlock" withActionId:@"proVersion"]; [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"goPro"]; [[NSUserDefaults standardUserDefaults] synchronize]; [appDelegate downloadAppData]; } You can see in that same block of code, I have the code that posts an update to scringo. After this, all I do is check stuff that I want to lock against the key that was stored using if/else conditional statements..such as if(![[NSUserDefaults standardUserDefaults] boolForKey:@"goPro"]){ //show ad } the little exclamation mark after the 'if' means it's checking to see if the key has NOT been stored. You can check if it has been stored by simply removing that exclamation mark. I use the same logic for all of the locked stuff, such as in the image gallery for the locked buttons - if(![[NSUserDefaults standardUserDefaults] boolForKey:@"goPro"]){ //create fake button }else{ //create real button
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 05:16 PM (12 years ago)
If you guys need further details on anything feel free to ask..happy to help
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/29/13 07:20 PM (12 years ago)
Have you tried adding a custom item in the scringo side bar? Can't get it to work...
 
Jerry
Aspiring developer
Profile
Posts: 51
Reg: Aug 07, 2012
Dallas
3,160
like
03/29/13 07:24 PM (12 years ago)
Thank you. I will give this a try. This really makes the app have a nice flow to it and should result in more IAP. BTW... I saw that you were dabbling with Android apps a while back. I've been considering experimenting with it myself. Were you able to get an app to the Android Market? I'm curious to know how the Install Rate for RevMob does in the Android world.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 07:32 PM (12 years ago)
@Mutzy - I haven't had any need to implement a custom item yet. Have you tried sending an email to Scringo support? I have found them to be extremely helpful in the past @Jerry - Cool, post back here and let me know how it goes. Unfortunately, I'm currently taking a "break" from Android development :P I'll figure it out eventually, but I made the decision to stay dedicated to iOS for the time being. I'm currently developing apps full time, and keeping up with the updates, changes, and tweaks for iOS is time consuming enough as it is I can tell you that I've heard RevMob is pretty terrible for Android though. If I was going to release an app for Android I would use Applovin and/or StartApp
 
Jerry
Aspiring developer
Profile
Posts: 51
Reg: Aug 07, 2012
Dallas
3,160
like
03/29/13 09:23 PM (12 years ago)
Jonathan, Probably a silly question but in your sample code from above.. if(![[NSUserDefaults standardUserDefaults] boolForKey:@"goPro"]){ //show ad } I would need to have this code wherever I'm referencing/calling the full screen or banner ads?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 09:24 PM (12 years ago)
Yep, exactly
 
Jerry
Aspiring developer
Profile
Posts: 51
Reg: Aug 07, 2012
Dallas
3,160
like
03/29/13 09:33 PM (12 years ago)
Cool...thanks for the tip about Revmob, Applovin, and StartApp on Android as well. I think I will stick to iOS for now. So are you like me that you enjoy the technical part of creating the apps like working with Xcode but do not enjoy the content creation part like creating questions for the Quizzes or gathering images, etc.. I'm about to start on a new app and I'm kinda dragging my feet in getting the content together but I'm looking forward to implementing some of your features you showed above. :-)
 
Jerry
Aspiring developer
Profile
Posts: 51
Reg: Aug 07, 2012
Dallas
3,160
like
03/29/13 09:36 PM (12 years ago)
duplicate.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/29/13 09:37 PM (12 years ago)
Haha yes I can't stand getting all of the content together..it's such a grind to find new questions when you're starting to exhaust a particular topic
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/30/13 05:39 AM (12 years ago)
Good stuff!! Thanks for posting.. Lot of options with the Easy IAP its awesome. @Absentia - I would look into Android after the Mac Apple Gallery is ready for Android - you'll see your income double most likely! Gotta take over all marketplaces :)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
03/30/13 06:10 AM (12 years ago)
Nice stuff! Looking forward to this update...
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
03/30/13 10:26 PM (12 years ago)
some nice features, thanks for the video.
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
04/08/13 05:02 AM (12 years ago)
That's really cool! May I ask you how did you manage the "ActionId" of the scringoAgent postToFeed? I managed to post to the activity feed but I cannot handle the action when another user taps on it. Thanks
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/08/13 12:18 PM (12 years ago)
Did you read the tutorial here? - https://dev.scringo.com/resources.php?resource=guides You have to create on observer for the tap - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playClickedFromActivity:) name:kScringoNotificationActivityActionTapped object:nil]; Then add the method that runs when the action occurs - -(void)playClickedFromActivity:(NSNotification *)aNotification { NSLog(@"got play button notification with song=%@", [aNotification userInfo]); // The rest of your code } I'll admit, they make it sound a little easier than it is
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/08/13 12:23 PM (12 years ago)
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
04/08/13 12:32 PM (12 years ago)
Thank you Absentia, I read their documentation but I didn't read the thread. The fact is that I'd like to call a specific BT screen after the tap. If you look at my feed http://gamezapp.it/wp-content/uploads/2013/04/scringofeed.pdf you can see that the Scringo Agent posts the feed based on what BT screen the user was using. I'd like the "action id" to be related to that screen so that once the user taps on it, the app will take him/her on that specific BT screen.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/08/13 12:50 PM (12 years ago)
Here's the way I would do it - ===In the home screen .m file (menu_buttons.m or whatever you are using) put this line in viewDidAppear (if there is no viewDidAppear method there already, create one) - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playClickedFromActivity:) name:kScringoNotificationActivityActionTapped object:nil]; ====Add this block of code beneath viewDidAppear - //Remove observers -(void)viewDidDisappear:(BOOL)animated{ [super viewDidDisappear:animated]; [BT_debugger showIt:self theMessage:@"viewDidDisappear - button menu observers removed"]; [[NSNotificationCenter defaultCenter] removeObserver:self name:kScringoNotificationActivityActionTapped object:nil]; } ====Add this entire method somewhere in that same .m file...make sure you aren't pasting it inside another method, and replace all of the parts in capital letters with your own values - -(void)playClickedFromActivity:(NSNotification *)aNotification { //flag this as the current screen YOUR_APP_DELEGATE_NAME *appDelegate = (YOUR_APP_DELEGATE_NAME *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; BT_item *screenObjectToLoad = [appDelegate.rootApp getScreenDataByNickname:@"NICKNAME_OF_SCREEN_TO_LOAD"]; [BT_viewControllerManager handleTapToLoadScreen:[self screenData] theMenuItemData:nil theScreenData:screenObjectToLoad] } Finally, add this line of code to the dealloc method all the way at the bottom of the file - [[NSNotificationCenter defaultCenter] removeObserver:self name:kScringoNotificationActivityActionTapped object:nil];
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
04/08/13 03:07 PM (12 years ago)
Hi, many thanks for taking your time to make a detailed answer. Still working on it :)
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/08/13 05:27 PM (12 years ago)
no problem..let me know if you get any bugs or errors
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
04/09/13 12:33 PM (12 years ago)
It works! I don't know why at the beginning I got multiple notifications; probably I didn't remove the observer properly. Thank you very much for the help.
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/09/13 12:53 PM (12 years ago)
Yeah NSNotification center is kind of tricky like that - it will just keep posting multiples of the same observer every time the screen loads, so you have to always make sure the observer is removed when the screen unloads. Glad you got it working!
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
04/23/13 07:25 AM (12 years ago)
Please how can I include the popin Ad code into my BT app
 
Rachelle-Joanne
Aspiring developer
Profile
Posts: 65
Reg: Jan 15, 2013
Lagos
650
like
04/23/13 07:26 AM (12 years ago)
Please how can I include the scringo popin Ad code into my BT app
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
04/23/13 01:10 PM (12 years ago)
You don't need to add any code for the Scringo ad - you can control it from the Scringo control panel
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
04/25/13 05:18 PM (12 years ago)
I am trying to implement a like button simply for a particular screen that will post to the Scringo activity feed. For example I have a newsfeed screen using RSS plugin and pasted the code below in the Rd_simplerss.m file but does not seem to show in activity feed. I tried to declare using the screen nickname. Any suggestions please let me know....thanks! NSString *ScreenNickname = [screenData itemNickname]; ScringoLikeButton *likeButton = [[ScringoLikeButton alloc] initWithFrame:CGRectMake(40, 300, 50, 27)]; UIBarButtonItem *likeItButton = [[UIBarButtonItem alloc] initWithCustomView:likeButton]; self.navigationItem.rightBarButtonItems = [NSArray arrayWithObjects:likeItButton, nil]; [likeButton updateLikeObject:ScreenNickname type:SCRINGO_APP_LIKE_OTHER description:@"NewsFeed"];
 
mleonard
Apple Fan
Profile
Posts: 124
Reg: Nov 01, 2011
Conway,AR
1,940
like
06/08/13 08:12 PM (12 years ago)
Hey @Absentia I'm trying to get the like button working ,but having a few problems. The screenshot from http://www.pixobit.com/wp-content/uploads/2013/03/imageeee.png is unavailable. Any chance you could re-upload it for me? Or email it to me? Thanks!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
06/12/13 09:47 AM (12 years ago)
Hi, for those who are looking for a solution for The ThumbViewer Plugin please have a look here: http://www.buzztouch.com/forum/thread.php?tid=C4BB9659E48420C466D81D0&currentPage=1 Best Regards, Danny
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/12/13 09:58 AM (12 years ago)
Awesome! Thanks Danny
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
06/25/13 07:38 PM (12 years ago)
- nevermind -
 

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.