Search code examples
iosios6xamarin.iosxamarin

Go to App Store Reviews in iOS 6


It appears that using the itms-apps//.... URL scheme doesn't work in iOS 6 with the new App Store to show the product reviews area. Now I'm using the code below, but it just shows you the product. How do you get to the review area to ask for a review and take the user to the right tab of the product displayed?

    void DoReview()
    {
        var spp = new StoreProductParameters(appId);
        var productViewController = new SKStoreProductViewController();
        // must set the Finished handler before displaying the view controller
        productViewController.Finished += (sender2, err) => {
            // Apple's docs says to use this method to close the view controller
            this.navigationController.DismissViewController(true, null);
            MySettings.AskedForReview = true;
        };
        productViewController.LoadProduct(spp, (ok, err) => { // ASYNC !!!
            if (ok)
            {
                this.navigationController.PresentViewController(productViewController, true, null);
            }
            else
            {
                Console.WriteLine(" failed ");
                if (err != null)
                    Console.WriteLine(" with error " + err);
            }
        });
    }

Solution

  • Hello you could try iRate from Nick Lockwood and see if that fits your needs, you can find the MonoTouch bindings of iRate here.

    btw it uses the following URL to open AppStore in review mode:

    itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id= your-AppID-here

    Alex