简体   繁体   中英

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.

Working and Tested Solution

if (NSClassFromString(@"SKStoreReviewController")) {

            [SKStoreReviewController requestReview];
        }
        else{
             //redirect user to AppStore
        }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM