You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation currently used in this plugin (requestReview()) is deprecated since iOS 14.0.
Proposal
I'd like to propose using the new variation of the requestReview(in: uiWindowScene) method.
It shouldn't be a big change (hopefully), I've already tried to implement the new way and it seems to be working.
Here's a possible implementation (I'm not iOS expert so I apologize if the implementation shown in the examples is wrong):
usingStoreKit;usingUIKit;publicvoidRequestReview(){varisIos14OrAbove=UIDevice.CurrentDevice.CheckSystemVersion(14,0);if(isIos14OrAbove){varscene=UIApplication.SharedApplication.KeyWindow.WindowScene;//another option (I'm not sure which to use)://var scene = UIApplication.SharedApplication.Delegate.GetWindow()?.WindowScene;if(sceneisnull){//handle the scene being null herereturn;}SKStoreReviewController.RequestReview(scene);}else{SKStoreReviewController.RequestReview();}}
The text was updated successfully, but these errors were encountered:
Feature Request: new iOS requestReview(in:)
Use the new requestReview(in: uiWindowScene) that's available since iOS 14.0.
Why
The implementation currently used in this plugin (
requestReview()
) is deprecated since iOS 14.0.Proposal
I'd like to propose using the new variation of the
requestReview(in: uiWindowScene)
method.It shouldn't be a big change (hopefully), I've already tried to implement the new way and it seems to be working.
Here's a possible implementation (I'm not iOS expert so I apologize if the implementation shown in the examples is wrong):
The text was updated successfully, but these errors were encountered: