Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 61

hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
01/20/13 07:53 PM (13 years ago)

App rater for Android question

Hi, just purchased the App rater plugin which is really nice. What I have noticed is that the positive rate function is really only for IOS and is posted to ITunes and doesn't seem to do anything for Google Play. Since I am only doing an Android app for now, what function, if any, dose the positive button have. I really like that the "dislike" function opens up the editor to send me an email. Perhaps the like button can do that too for android apps. It might not be posted in Google Play, but at least your getting some feedback. Thanks again for all the hard work, Howard
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/21/13 12:50 AM (13 years ago)
The App Rater plugin works for both the android and ios. You can check one of my android apps to test it if you want. However, the android plugin has a bug which does not list your email from your bt control panel. Quick fix for this is to put your email id manually in the app_rater.java class file in line number 219 or something like below (replace the email with your eamil id)... i.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] {"[email protected]"}); I will be soon releasing an update for android fixing this issue. Link to one of my apps where you can test the plugin in action.-- https://play.google.com/store/apps/details?id=com.motorvehiclelawinindia
 
Whyshirley
Aspiring developer
Profile
Posts: 6
Reg: Aug 06, 2012
Bedford UK
9,860
like
01/21/13 01:51 AM (13 years ago)
Hi You can also drop the email address variable in instead of the hardcoded email address so it picks up the address you set in the control panel, as I figured out over the weekend. It just needs to be passed as a string array, so something like: i.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { emailaddress}); but note that I just made up emailaddress as the variable name as I'm not at my mac and can't see the source - basically just use whatever it is already passing in but surround it in: new String[] { variablegoesinhere } Hope that doesn't muddy the waters! Andrew
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/21/13 06:17 AM (13 years ago)
Hi hasher13, This is a cool plugin! You don't need to enter a google play url for the positive rating, the url is created programatically in the .java file, using the package name. It appears to work fine for me.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
01/21/13 07:33 AM (13 years ago)
Hi and good morning, @rave, I didn't realize that it did it automatically. I saw that it had to be entered manually for ios, so I figured it would need to be for Android as well. That is VERY cool that it does it automatically. @sandeep, once again thanks for an awesome App and great job. Since I didn't realize that it was done automatically, then I don't think there is need for the "positive" rating button to be linked to an email editor. In that case, do I still need to put that extra email line in? I was only testing it on the emulator which didn't do any actions except for the "not now" button. Should the other 2 buttons be active in the emulator or should I test in my test phone to get its full effect? Thanks again for the replies. Howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/21/13 08:00 AM (13 years ago)
@hasher13, the emulator won't have the google play app installed and probably won't have email installed, although you can set up a gmail account in the emulator settings, like you would on an actual device. That's probably why they don't appear to be working. On a real device they should just work.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
01/21/13 10:00 AM (13 years ago)
thanks @rave
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/21/13 10:17 AM (13 years ago)
@ @hasher13- Rave has answered almost all your queries here. Actually the code for android is edited as such that first of all if the user chooses to rate positively he will click the Like button. In that case the user will be taken directly to your app link on google play store. Ofcourse the market app should be installed on his device. Second scenario is where he is some what not satisfied with your app then he clicks needs some improvement button. In that case the user is taken to email compose sheet if an email client or app is installed on his device. If the email app is not set up on the users device, then he will be taken directly to your apps link on play store. And if both apps are not installed the app will crash as you saw on your emulator. Third scenario is that where the user chooses not to rate the app for instance. In that case the user is taken to the previous screen. Hope my explanation clears your doubt. And also answer to your question is that you should set up an email account where the user will send you some message in case he is not satisfied with your app. This helps to intercept negative rating of your app and also gives a chance and some suggestions to improve it.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
01/21/13 10:32 AM (13 years ago)
Thanks Sandeep. Never had doubt, just mis-understood! :-) Thanks for the great explanation. I guess since it was so easy to set up and didn't realize it did all this in the background automatically, I wasn't sure if I needed to do anything else. I haven't tried it live on my demo phone yet, just wanted to make sure it was set up correctly first. Thanks again, Keep up the great plug-ins. howard
 

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.