How can you directly link to the iOS app reviews section

It was used for work.

itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=XXXXXXXXX&pageNumber=0&sortOrdering=2

Starting with iOS 9, the user receives an error message:

Your request has generated an error, [newNullReponce]

What is the new URL structure?

thanks

+4
source share
2 answers

This code will lead you to the app page on the App Store. As far as I know, it’s no longer possible to go directly to app reviews.

NSString* appId = @"APP_ID";
NSString* appUrl = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", appId];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appUrl]];
+1
source

New structure: NSURL *url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id[your app id]?at=10l6dK"];

Additional note that might help: Here is my solution for introducing a pop-up viewer for iOS apps.

UIAlert, , , appReviewReminder, .

, , , 1 5 , , () :

-(void)appReviewReminder{

        UIAlertView *infoAlert;
         version = @"1.4.23"
        infoAlert = [[UIAlertView alloc]
                     initWithTitle: nil
                     message: [NSString stringWithFormat: @"[Your App Version] V%@\nIf you enjoy [Your App Name] take time to give us a review, please press 'App Review'.",version]
                     delegate: self
                     cancelButtonTitle: @"Maybe Later"
                     otherButtonTitles: @"Submit Feedback",
                     @"App Review",nil];

        [infoAlert show];      
    }

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

    if (buttonIndex==0)
    {
        //"Review Later" so dismiss alert
        [self dismissViewControllerAnimated:YES completion:nil];
    }

    else if (buttonIndex==1)
    {
        //route user to your website support page
        NSURL *url = [NSURL URLWithString:@"http://www.yourwebsite.com/contactSupport.html"];

        [[UIApplication sharedApplication] openURL:url];
    }
    else{
        //route to iOS App Store URL
        NSURL *url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id[your app id]?at=10l6dK"];

        [[UIApplication sharedApplication] openURL:url];

    }
}
0

Source: https://habr.com/ru/post/1618781/


All Articles