|
I am currently having an issue getting the correct activation state on app launch to show the SK Store Review Controller. So I call it in onAppear:
Then in the appLaunched method:
The issue is that the only scene I get back in the Set of connectedScenes has an activationState of
|
|
Same issue for me and also tried with Xcode 13.2.1 (and I think iOS 15.2). I was able to get the request to show up if I just used |
|
While your suggest works, I thought the idea of checking whether the screen is active is to prevent the view trying to show if the view is not active. It seems in a recent version of iOS Apple has changed how the scene is active. |
|
I'm having the same issue (also XCode 13.3, targeting 15.0) For learning purposes removing the filter works, but I'd like to know how to do this in a live app. Probably the absolutely worst place for your app to crash is when requesting a review :) |
|
With a quick check I'm finding that there is only one scene found in the scope of |
|
Tested on Xcode 13.4.1. In my iPhone simulator test I have only one inactive. My workaround is
so if it's a simulator problem, I still get the correct one on the device. However in my iPad simulator, having 2 versions running side by side, I get two scenes in the list. Finally, not windows show the review window. Is that how it should be? I would like to understand, what exactly is going wrong here. |
SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.