-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS touch inputs not working after calling SKStoreReviewController.requestReview(); #621
Comments
hi, while I still debugging the issue, there are few findings:
|
also |
fixed in #622 |
few notes. It turned into interesting investigation:
The fix -- remove logic to keep keyWindow by RoboVM internals. Every project is responsible to do it (somewhere in ApplicationDelegate). And have business logic in destructor is bad case, even for apple. |
and
Can you share some sample code of what exactly should be done in AppDelegate ? |
@guillerodriguez
|
This must be done always? Or only if using If the former, then the PR #622 should include a BIG red warning since this can potentially break any project. |
@guillerodriguez its related to projects that ViewControllers and creates Window manually (so now they are responsible to track manually) . But today projects without storyboards/scene are not supported so most likely it affect to production wise projects |
* fixed #621: iOS touch inputs not working after calling SKStoreReviewController.requestReview();
Issue details
When you call SKStoreReviewController.requestReview() or requestReviewInScene() and close the opening rating controller, the app will not respond to touch/key inputs anymore. It doesn't matter from which thread you call that function.
However rendering continues to work normally.
Reproduction steps/code
Create a default RoboVM iOS app within IDEA and add that code snippet to ViewController.java:
Run the app on simulator, dismiss the opening view controller and then try to tap the button. It will not work.
The issue doesn't happen with a Xcode iOS project without RoboVM.
Configuration
Build Tools:
Versions:
Build Targets:
only iOS > 15
Simulator and Device
I'm not sure if this may be related to iOS 15 "app prewarming":
https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence?language=objc#3894431
The text was updated successfully, but these errors were encountered: