99.94% of readers enjoy Jacob’s Tech Tavern without subscribing for free. Every 3 weeks, I’ll send you ludicrously in-depth articles about iOS, Sw

Jacob’s Tech Tavern

submited by
Style Pass
2024-05-13 16:30:06

99.94% of readers enjoy Jacob’s Tech Tavern without subscribing for free. Every 3 weeks, I’ll send you ludicrously in-depth articles about iOS, Swift, and indie projects.

Every time you frustrate your user from doing what they want, you risk a one-star rating that hobbles your average. I’m not here to discuss that.

Users aren’t often compelled to go to all the bother of opening the App Store, searching your app, and leaving a grumpy 1* review.

Therefore, the majority of your app reviews should come when you ask for review. This is really easy via the StoreKit APIs in iOS. 

The environment property calls the RequestReviewAction instance directly, because internally it defines a callAsFunction() method.

I’m also adding user defaults here via @AppStorage — this prevents us asking multiple times in this context, so we don’t spam (and annoy) our users.

The traditional approach to requesting app review is a little more verbose, but gives you more control (read: allows you to store your logic outside of a View, thank you very much). 

Leave a Comment