Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

RequestStoreReview - not working

Discussion in 'Editor & General Support' started by Lajo, Jan 31, 2018.

  1. Lajo

    Lajo

    Joined:
    Dec 23, 2016
    Posts:
    24
    I am sure I am doing something wrong but for some reason this does not work for me.
    I read a number similar topics but still did not resolve this problem.
    I want to have the IOS rating in my app just like the demos.

    Can anyone explain to me step by step what I should do to make it work in my app.
     
  2. ScottRombach8

    ScottRombach8

    Joined:
    Sep 15, 2016
    Posts:
    3
    Hi, my only suggestion would be to check your version of unity. I think this feature was introduced in 2017.1, so if you're on a previous version it won't work. Also you need to build through Xcode I believe.

    I upgraded and tried it yesterday and it worked fine :)

    Hope that helps!
     
  3. Lajo

    Lajo

    Joined:
    Dec 23, 2016
    Posts:
    24
    public static bool RequestStoreReview();

    Is this the only line of code I have to enter into my C# script or do I have to do something else?
     
  4. ScottRombach8

    ScottRombach8

    Joined:
    Sep 15, 2016
    Posts:
    3
    I think you've just pasted that line of code from the Unity Manual without any real understanding of what it means...


    At the top of your script add:
    using UnityEngine.iOS

    Then in your code where you want to trigger it call:
    Device.RequestStoreReview ();

    You'll be able to test it by running your game on a device via Xcode, it won't work through TestFlight.
     
    ilmario, Rachan, ALeonidou and 2 others like this.