Home > database >  How to ask for review with SKStoreReviewController on macOS?
How to ask for review with SKStoreReviewController on macOS?

Time:11-06

I'm trying to figure out how to use the the SKStoreReviewController.requestReview().

How do I get the review dialogue to show up in a macOS SwiftUI app?

When I call SKStoreReviewController.requestReview() in debug mode in my app nothing happens even though the documentation says it should show up every time in debug mode. As far as I can see the SKStoreReviewController.requestReview(in: UIWindowScene) call is just for iOS and macCatalyst and not for macOS 12.

I've seen the new SwiftUI API but it is only available from macOS 13:

@Environment(\.requestReview) private var requestReview

VStack {

}      
.onAppear {
    requestReview()
}

Thanks for helping!

CodePudding user response:

Ok, I found the error. It's not showing because my app was set to Sign to Run Locally and not to Development.

enter image description here

  • Related