Discussion Forums  >  Uncategorized

Replies: 35    Views: 359

mitchellapps
Aspiring developer
Profile
Posts: 170
Reg: Aug 15, 2011
St. Louis
4,300
01/03/12 01:10 AM (14 years ago)

App Rater Dialog Box

Hey guys, just wanted to share that I was able to get Rate This App to work in one of my apps. It's the dialog box we've all seen while using apps that asks the user to rate the app if they like it. I used this open source code from here: https://github.com/nippysaurus/RateThisApp Download the zip file and then copy the ratethisappdialog.h and .m files over to your project. In your appdelegate.m type: #import RateThisAppDialog.h and then right under: -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ Paste this: [RateThisAppDialog threeButtonLayoutWithTitle:@your title here message:@your message here rateNowButtonText:@Yes, Rate it! rateLaterButtonText:@No, Thanks rateNeverButtonText:@Don't Ask Me Again]; In the RateThisAppDialog.m Paste: #import yourappname_appDelegate.h Your Done! In the RateThisAppDialog.h you will put the link to your app in the proper place and you can set when the dialog box will popup. It's set at 1 for testing purposes. I've read you should set it to around 20 times a user opens an app for this box because that means they like your app and are more likely to give you a positive review. Let me know if anyone has any questions! Here is what it looks like in my app: http://dl.dropbox.com/u/5432778/buzztouch/ratethisapp.png
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/03/12 01:24 AM (14 years ago)
Very cool, sounds like a great plugin. Or, probably not a plugin, but a choice in the Core Settings to 'show rate this app box' or something. Because it's not a new screen type it's not a good candidate for a plugin. But, because it probably only shows 'once' or only until the users does it it makes sense that it would pop-up when the app loaded. Could be a checkbox or something in the control panel to turn on / off. Good stuff, thx for sharing.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/03/12 05:03 AM (14 years ago)
Nice one, great find and would love to see that in core settings! WIll try it out tonight, cheers again!. Got Game Center (thanks to @MGoBlue) working last night as well as using Parse for notifications so this will be another nice addition to the armory. Sweet.
 
Mosco
Apple Fan
Profile
Posts: 12
Reg: Dec 27, 2011
Virginia
120
like
01/03/12 06:12 AM (14 years ago)
great thanks a lot! i'll try it later today
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
01/03/12 08:14 AM (14 years ago)
Great find. Thanks for posting.
 
shockme66
Apple Fan
Profile
Posts: 81
Reg: Sep 12, 2011
Easton PA
1,010
like
01/03/12 08:17 AM (14 years ago)
Thanks. I got it working; looks good. Any idea on how to add the frequency of this message box? From what I can see is you can only set the instance once when the user opens the app x number of times. Thanks again.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/03/12 09:05 AM (14 years ago)
Been looking for something like this...very cool! Mark
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/03/12 11:32 AM (14 years ago)
Awesome! thanks for this
 
mitchellapps
Aspiring developer
Profile
Posts: 170
Reg: Aug 15, 2011
St. Louis
4,300
like
01/03/12 11:39 AM (14 years ago)
@shockme66 Hey, unfortunately this doesn't allow for the box to come up other than once. I was looking at Appirater, which does allow the box to be open every x amount of times but I couldn't get it to work. I'll keep messing with it though.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/03/12 07:05 PM (14 years ago)
Hey Mitchell, Thank you for sharing but i've tried and successfully failed with 128 errors. Kinda confused, can you help. Thanks Anthony
 
mitchellapps
Aspiring developer
Profile
Posts: 170
Reg: Aug 15, 2011
St. Louis
4,300
like
01/03/12 11:41 PM (14 years ago)
@Rad Doc, hey hit me up with an email and I'll try to help you out! [email protected]
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/03/12 11:45 PM (14 years ago)
Will do. Thanks for willingness to help. Anthony
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/09/12 04:33 PM (14 years ago)
Hi Mitchel, Thanks for sharing this with us. Works perfect but I have one issue: How to get the link if your app isn't in the store yet? So this can only be implemented in an update (once you have a link in the appstore)? Thanks in advance and Best Regards, Danny
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/09/12 04:36 PM (14 years ago)
register your app in the store and you'll have an url to the app (non working of course) - itunes connect, applications, set it up like normal and it can be dummy text and your app url will appear at the top
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/09/12 05:08 PM (14 years ago)
Hi mysps, Thanks for clarification. Gonna need this info when I submit my app to the store. Best Regards, Danny
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/09/12 05:34 PM (14 years ago)
@Mitchell, it worked like a charm. Thanks for your help. Anthony
 
shockme66
Apple Fan
Profile
Posts: 81
Reg: Sep 12, 2011
Easton PA
1,010
like
01/10/12 06:40 AM (14 years ago)
Help Needed: I got the code to work, but when the remind me later button is pressed I don't see the rate me function appear ever again. Any ideas??
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
01/12/12 03:54 PM (14 years ago)
ive tried this about 10 times and every time it pops up with errors.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/12/12 03:59 PM (14 years ago)
Hi Jackhos1, I think I know what your problem is. This forum strips quotes (and you need them)> This code [RateThisAppDialog threeButtonLayoutWithTitle:@'your title here' message:@'your message here' rateNowButtonText:@'Yes, Rate it!' rateLaterButtonText:@'No, Thanks' rateNeverButtonText:@'Don't Ask Me Again']; Everywhere I used the single quotes you got to replace them with double quotes (you will see the errors move away while you're editing). Best Regards, Danny
 
mitchellapps
Aspiring developer
Profile
Posts: 170
Reg: Aug 15, 2011
St. Louis
4,300
like
01/12/12 04:05 PM (14 years ago)
@PSMDanny, Thanks for that! That has to be the error he is having! @shockme66, This code is designed to only launch one time for each user. It doesn't relaunch the Dialog box say every 30 times in a 2 month period. There are other source codes out there that do it but I've had issues implementing them. For this one I would set it to go off around the 15-20th time a user opens it because they are more likely to rate your app favorably. Hope this helps!
 
shockme66
Apple Fan
Profile
Posts: 81
Reg: Sep 12, 2011
Easton PA
1,010
like
01/12/12 04:16 PM (14 years ago)
Everyone, I am currently using the code from: https://github.com/nicklockwood/iRate This version is very customizable and all features work perfect. My AR15 app has this code in it now and it works great (http://itunes.apple.com/us/app/ar15-zeroing/id487337673?mt=8). You can set duration of time and function before the rate screen pops up. I did have some errors upon using it and had to add a import statement for the irate.m file (needed to import the UIKIT). Good Luck!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/12/12 04:20 PM (14 years ago)
Hi Shockme66, Would you be so kind to post a tutorial on how you did this exactly (helping others) Thanks and Best Regards, Danny
 
shockme66
Apple Fan
Profile
Posts: 81
Reg: Sep 12, 2011
Easton PA
1,010
like
01/12/12 04:33 PM (14 years ago)
The directions on the link i provided really good, but it may have been my unique code that I had to use an additional import statement. Give it a shot and let me know if you have any issues.
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
01/12/12 05:57 PM (14 years ago)
what messes me up is what you have to import, im pretty sure you import the ratethisappdialog.h, ratethisappdialog.m, and the appdelegate.m, and the appdelegate.h Is there anything else that we need add?
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/12/12 06:25 PM (14 years ago)
Hi Jackhos1, in YourAppName_appdelegate.m type: #import 'RateThisAppDialog.h' After that right under -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ : [RateThisAppDialog threeButtonLayoutWithTitle:@'your title here' message:@'your message here' rateNowButtonText:@'Yes, Rate it!' rateLaterButtonText:@'No, Thanks' rateNeverButtonText:@'Don't Ask Me Again']; Rember to change the single quotes to double quotes. After that In the RateThisAppDialog.m Paste: #import 'YourAppName_appDelegate.h' Thats it! If your application name was Myrestaurant then change YourAppName in Myrestaurant. Remember to change every single quote to a double quote. Good Luck and Best Regards, Danny
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
01/12/12 06:33 PM (14 years ago)
What do you mean when you say change every single quote to a double quote.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
01/12/12 06:40 PM (14 years ago)
Again, big thanks to mitchellapps for this tip.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/12/12 06:46 PM (14 years ago)
@Jackhos1 change every single quote =(') without the () to ('') I can't type a double quote here because it get striped Look at : http://www.cs.cf.ac.uk/Dave/PERL/node19.html and see the double quotation before the line/text: David said Use that for every single quote. Best Regards, Danny
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
01/12/12 07:21 PM (14 years ago)
Thanks i dont get it still, but is there any way that you could make a how to video and just include the whole thing, i think we could all benefit from that.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/13/12 12:55 AM (14 years ago)
Hi Jackhos1, What is it what you don't get. Do you know what a singel quote is? Double qoute? If not use google Try the described code in xcode. if it gives you error LOOK at the errors - what are they telling you? Best Regards, Danny
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
01/25/12 04:14 PM (14 years ago)
Thank you Mitchellapps, I tried appirater but I couldn't get it working. This is working even if I'm not sure that the remind me later option will work. By the way if you use a link like http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=00000000&onlyLatestVersion=false&type=Purple+Software you'll land on the review page and not on the app page. Good for the lazy users ;-) Just replace the 00000000 with your app id. It will open iTunes though. Kahuna
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
03/16/12 05:22 AM (13 years ago)
i see the you need to change the URL in the Ratethisappdialog.h screen i assume you can only do this with an update and its not possible to do it for an app you are submittingforthe first time ? when using the link maker your searching the app store, but obviously my app is no there yet. is it possible to do this for a first submit ?
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
03/16/12 05:29 AM (13 years ago)
ignore that...im being thick. i assume i use my ituneconnect id for that app,and then if it was approved then it would e live when the attempted to rate must get some sleep :)
 
claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
like
04/15/12 08:19 PM (13 years ago)
Hi, great plug-in, It works for me.. Just a problem: after I add it, when run it my app on the simulator, it got paused. It got paused in few breakpoint, right in this code lines (screenshot link below): TURN OFF ZOMBIES BEFORE RELEASING THIS APPLICATION! If you're unsure what "debugging zombies" are, ignore this. If you do, be sure to turn them off before releasing this application. The NSLog message below prints a reminder to the output console if you have left Zombies on. You're using the output console, right? */ if(getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled")){ NSString *message = @""; message = [message stringByAppendingString:@"\n#####################################################################################################################"]; message = [message stringByAppendingString:@"\nZOMBIES ENABLED, TURN THIS OFF BEFORE RELEASING THIS APPLICATION!"]; message = [message stringByAppendingString:@"\nDouble click executables > [app name] > arguments: Remove NSZombieEnabled = YES"]; message = [message stringByAppendingString:@"\n#####################################################################################################################\n\n"]; NSLog(@"%@", message); (screenshot link) http://dl.dropbox.com/u/21728119/Screen%20Shot%202012-04-16%20at%2010.03.50.png Clicking Debug -> Continue, I make it run, but I'm wondering how to solve this.. I think It should be easy, I just don't know what Zombie is about.. I don't even know how much this kind of problems can be relevant to Apple.. Can they reject an app for this? Does someone knows how to solve it? It should be related with this "plug-in", that's why I am posting it here. Thanks everyone
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
05/10/12 06:26 AM (13 years ago)
Is there any similar plugin for android?
 
HelperDev
Lost but trying
Profile
Posts: 49
Reg: Nov 16, 2012
New York
3,090
like
02/18/13 10:41 PM (12 years ago)
Same, is there any for android?
 

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.