-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
[VisionOS] Sign-In closes the app after signing in #208
Comments
Unfortunately, I don't have an Apple Silicon computer to test this out. I can see something related to a UnitySwiftUIAppDelegate there, which seems to be something related to SwiftUI?
And what is this code? 😅 |
If you can provide a Sample project that reproduces the crash maybe I could take a look in the visionOS simulator once I get my hands on some ARM mac machine. The visionOS simulator does not work on intel devices 😓 |
Hi, @makszhk!I ran into the same problem, any updates will be appreciated. |
Regarding needing to reopen your app after going being taken to a system dialog, I am curious if it is the same behavior seem with in-app purchase system dialogs. The fully immersive app is minimized to show the system dialog, and upon closing the system dialog, the fully immersive app is not automatically reopened. If that's the case, I don't think this is caused by this plugin but is more of an apple-unity issue. |
Hi.
There's a problem on VisionOS.
I downloaded your example, installed it, changed to version 2022.3.21 and everything seems to be fine.
After running it on VisionOS, the first problem occurred: the app crashed with an error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppleSignInForUnity.UnitySwiftUIAppDelegate window]: unrecognized selector sent to instance 0x300d0a200'
which occurs in AppleAuth.m at line 333:
After a little research, I changed this code to another one and it worked (at least no crash at the beginning).
After that, I decided to test Sign-In. And there was a second problem. I click on Sign-In -> Native login window opens -> I enter all data, enter Passcode -> Window closes and App closes too. And only after opening the App again I get a Callback with data (sometimes with full, sometimes just a token, I don't know what it's related to).
This problem is critical, as I need a Flow where the App does not close after Sign In, but continues to work.
No errors are seen in Logs, it just silently closes and that's it.
I also want to say that I tested all the same thing on iOS, and it worked correctly (this is to exclude variants that I installed the sample wrong).
Thank you, I look forward to your reply.
Plugin Version: 1.4.3 (canary branch)
Unity Version: 2022.3.21f AND tested on downgraded 2022.3.19f
XCode: 15.4
VisionOS: 1.2
Project Mode: Fully Immersive Space
The text was updated successfully, but these errors were encountered: