Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
7
Question by schwertfisch · Aug 02, 2011 at 04:30 PM · buttongameappstorerate

How do I put a "Rate game" button?

I want to have a button on the start screen, that when pressed will get the player to the game's page in order for the player to rate it. Could anyone please guide me on how this is done? Thanks :-)

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BerggreenDK · Aug 02, 2011 at 10:36 PM 0
Share

what is "the game's page" ? is it a webpage?

avatar image schwertfisch · Aug 03, 2011 at 02:54 AM 0
Share

The game's page in iTunes.

6 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Bovine · Aug 18, 2011 at 09:02 PM

I don't know if there's anything in Unity, but you could write a simple plugin to do the native iOS code - given you said iTunes I'm presuming an iOS app?

The Unity Manual covers native code plugin creation here:

http://unity3d.com/support/documentation/Manual/Plugins.html

This page discusses the code for opening a URL:

http://iphonedevelopertips.com/cocoa/launching-the-browser-from-within-an-iphone-application.html

This page discusses a pure native code example:

http://www.sysapps.com/tutorials/2011/4/18/how-to-ask-a-user-to-rate-your-application.html

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image schwertfisch · Oct 11, 2011 at 06:20 PM 0
Share

Thanks Bovine, sorry it took me a long time to return to this question :-)

avatar image Bovine · Oct 11, 2011 at 06:28 PM 0
Share

No worries, hope it helped! :)

avatar image
31

Answer by AndreasBoye · Jul 30, 2014 at 10:27 AM

I'm probably a bit late to the party, but why not do something like this:

 #if UNITY_ANDROID
 Application.OpenURL("market://details?id=YOUR_ID");
 #elif UNITY_IPHONE
 Application.OpenURL("itms-apps://itunes.apple.com/app/idYOUR_ID");
 #endif

Seems like that is what most people do.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AjayKhara · Sep 24, 2014 at 01:45 PM 0
Share

Hey schwertfisch,

This is how you do it, Create a Rate button however you like, unity GUI or external plugins, and call this function containing AndreasBoye's code, on button click. That should do.

I'll tell you what helped me with my game, I used this free plugin called polljoy(polljoy.com), for the rate game popUp, and handled the AndreasBoye's code upon user feedback. SO I created a popup to redirect them to the app store. And the good thing is that usually they do it because they get rewarded. We use that a lot, easy to integrate.

And by the way, this website is pretty cool for inspiration regarding your button’s design : http://www.webdesignalley.org/button-design/splendid-set-of-game-buttons-design

avatar image
1

Answer by usalalas · Mar 17, 2016 at 02:38 PM

Good morning to all,

How do I know the player actually rated the game? So I can stop asking him to rate it.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mihakinova · Sep 09, 2017 at 08:37 PM 0
Share

You can't know if the user actually rated your app after being redirected from your game to the App / Play Store, but you can check in Unity if user was redirected. So, after redirecting the user, use something simple like this:

  if (PlayerPrefs.GetInt("hasRated", 0) == 0)
 {
     // Redirect user to Rate page
     PlayerPrefs.SetInt("hasRated", 1);
 }
avatar image
0

Answer by cfbevan · Aug 18, 2011 at 09:09 PM

The following will open a browser to the page you need.

if(GUILayout.Button("TEXT")) {

     Process pr = new Process();
     pr.StartInfo.FileName = "http://WHERETO";
     pr.StartInfo.Arguments = "";
     pr.StartInfo.UseShellExecute = true;
     pr.StartInfo.RedirectStandardOutput = false;
     pr.Start();

}

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bovine · Aug 18, 2011 at 09:26 PM 0
Share

I have tried this and while it works fine in the Editor it does not work on the phone. That presumes this is an iOS app - are OSX apps on iTunes or just in the OSX App Store?

avatar image
0

Answer by dustylock · Dec 06, 2016 at 01:52 PM

alt text Check out the asset https://goo.gl/fjziCh .

It will save you tons of time.


icon-128-4.png (3.7 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Hello iam working on a game wich is pretty simple in the middle of the screen is a stick wich you can tilt by using the keys a and d and now i want to replace the keys with two ui buttons. 1 Answer

How can I rate my app on the store directly from the app? 0 Answers

Go to next scene when correct answer 3 Answers

Is there a way to lock GUI buttons to a screen position insted of a pixel defined position so it will show up no matter the resolution of the screen? 0 Answers

Uploading IPA file to App Store without MAC 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges