iosiphoneios11skstorereviewcontroller

In app rating for users with OS version below iOS 11


How would app users with iOS version lower than iOS 11 be able to rate an app?

Do I have to write conditional code something like this

if (iOS11) {
    [SKStoreReviewController requestReview];
} else {
    //show custom review prompt and redirect to app store
}

Will Apple allow this or reject the app? If Apple won't allow this then what should be done for other users? Thanks in advance.


Solution

  • Working and Tested Solution

    if (NSClassFromString(@"SKStoreReviewController")) {
    
                [SKStoreReviewController requestReview];
            }
            else{
                 //redirect user to AppStore
            }