found a useful tip for asking user to review your app

Discussion in 'iOS Programming' started by johnjmapp, Feb 1, 2012.

  1. johnjmapp macrumors newbie

    johnjmapp

    Joined:
    Jan 17, 2012
    #1
    I found a useful pieces of code that can let you request user to review your app. i would like to share it here.

    Code:
    NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
                str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str]; 
                str = [NSString stringWithFormat:@"%@type=Purple+Software&id=", str];
                str = [NSString stringWithFormat:@"%@493860607", str]; 
                
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Perhaps explain how type and id are determined.
     
  3. johnjmapp thread starter macrumors newbie

    johnjmapp

    Joined:
    Jan 17, 2012
    #3
    type=Purple+Software part is literal and not the name of your company. so you dont need to change it.

    The only thing you need to change is the app id. replace it with your own app id.
     
  4. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #4
    Note:
    The link will take people using an iPhone or iPod Touch (I'm not sure about iPad,) directly to the review section of the app's page on the app store. You only need to make sure the id is correct (you can find it on iTunes Connect > Manage Apps > the app you want the id for.)

    Just because the OP kind of posted that helpful code without really explaining what it does or how to use it.
     

Share This Page