Update code for Review From App using StoreKit (iOS >= 10.3) #63

Closed
opened 2025-12-29 18:28:49 +01:00 by adam · 6 comments
Owner

Originally created by @hardik99 on GitHub (Jul 5, 2017).

Hey ,

Update repository for review using StoreKit added by Apple from iOS >= 10.3

SKStoreReviewController.requestReview()

Originally created by @hardik99 on GitHub (Jul 5, 2017). Hey , Update repository for review using StoreKit added by Apple from iOS >= 10.3 `SKStoreReviewController.requestReview()`
adam closed this issue 2025-12-29 18:28:49 +01:00
Author
Owner

@perteraul commented on GitHub (Jul 6, 2017):

+1 on this. It would be awesome.

@perteraul commented on GitHub (Jul 6, 2017): +1 on this. It would be awesome.
Author
Owner

@perteraul commented on GitHub (Jul 6, 2017):

@hardik99

I needed this, so I tweaked the Armchair.swift file in order to create a workaround. Here's what works for me, though I'm not sure it's the best practice out there and if it'll work for you.

http://snpy.in/OkQpZF

In the rateApp() function I changed the current if #available(iOS 10.3, *) into else if #available(iOS 10.2, *) and added a new if #available(iOS 10.3, *) { SKStoreReviewController.requestReview() } before the iOS 10.2.

@perteraul commented on GitHub (Jul 6, 2017): @hardik99 I needed this, so I tweaked the Armchair.swift file in order to create a workaround. Here's what works for me, though I'm not sure it's the best practice out there and if it'll work for you. http://snpy.in/OkQpZF In the `rateApp()` function I changed the current `if #available(iOS 10.3, *)` into `else if #available(iOS 10.2, *)` and added a new ` if #available(iOS 10.3, *) { SKStoreReviewController.requestReview() }` before the iOS 10.2.
Author
Owner

@ArturoLee commented on GitHub (Jul 14, 2017):

@perteraul Nice work. I thought it was weird this library didn't have that. Can you do a pull request?

@ArturoLee commented on GitHub (Jul 14, 2017): @perteraul Nice work. I thought it was weird this library didn't have that. Can you do a pull request?
Author
Owner

@ari3l commented on GitHub (Jul 16, 2017):

This is already implemented

To use the new iOS 10.3 prompt simply do:
Armchair.useStoreKitReviewPrompt(true)

Perhaps this should be added to the docs.

@ari3l commented on GitHub (Jul 16, 2017): [This is already implemented](https://github.com/UrbanApps/Armchair/pull/92) To use the new iOS 10.3 prompt simply do: `Armchair.useStoreKitReviewPrompt(true)` Perhaps this should be added to the docs.
Author
Owner

@ArturoLee commented on GitHub (Jul 16, 2017):

@ari3l You're right. This issue should be closed. And documentation would be helpful

@ArturoLee commented on GitHub (Jul 16, 2017): @ari3l You're right. This issue should be closed. And documentation would be helpful
Author
Owner

@hardik99 commented on GitHub (Jul 17, 2017):

Great. It will be very helpful.
Thanks.

@hardik99 commented on GitHub (Jul 17, 2017): Great. It will be very helpful. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Armchair#63