-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
Modal crash in iOS app extension #13951
Comments
I don't know what exactly goes wrong, but after reading this stack trace I have a feeling that your extension requires an unsupported orientation. Could it be so? (Like you disabled landscape orientation, but your extension requires it?) |
That's what I thought, but I have all orientations ticked in the deployment info bit of my app (there's no option in the app extension for this). However, I removed the modal code from my Rn app extension and the it still crashed. So either it's a misleading error message or I have 2 bugs. Either way I'll close for now. |
If at some point you'll sort it out, please, document your findings somewhere 🙏 (mb here?) It may be extremely helpful for others! |
not sure it will help or not i think you should add this props |
We’re seeing a similar error message in an iMessage extension that uses React Native. It doesn’t seem to crash in production despite what the error message says. The message comes from RCTModalHostViewController which checks the supported orientations from RCTSharedApplication’s window. RCTUtils returns I think the modal orientation check is misleading when running in an app extension and should probably be skipped. |
I'm seeing my app extension crash on some devices. It launches a
Modal
which appears briefly before the whole thing vanishes. I can't see an explicit error message but I have noticed the message below (which I don't understand). Any ideas?The text was updated successfully, but these errors were encountered: