Modal crash in iOS app extension

See original GitHub issue

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?

2017-05-12 21:01:55.731 [error][tid:main][RCTModalHostViewController.m:68] Modal was presented with 0x2 orientations mask but the application only supports 0x0.Add more interface orientations to your app's Info.plist to fix this.NOTE: This will crash in non-dev mode.
2017-05-12 21:01:55.730695+0100 myapp-share[18726:4276060] Modal was presented with 0x2 orientations mask but the application only supports 0x0.Add more interface orientations to your app's Info.plist to fix this.NOTE: This will crash in non-dev mode.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
johnlim5847commented, Jun 25, 2017

not sure it will help or not i think you should add this props supportedOrientations={['portrait', 'landscape']} in your Modal

1reaction
npomfretcommented, May 15, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash with Modal Window and NStatu… - Apple Developer
I've got an LSUIElement app with a status bar menu. One of the menu items brings up a modal menu. If the user...
Read more >
Crash when open containing app from today extension
I ran into a very similar issue. I'd implemented application:openURL:sourceApplication:annotation: with this Swift code:
Read more >
[Solved]-IOS crash when closing a modal in expo managed project
I used it only on my very first login modal displayed at the start of the app and it works just fine !...
Read more >
Lifecycle extension in iOS
Tracking app crashes in iOS. This information helps you understand how crashes are tracked and the best practices to handle false crashes.
Read more >
App Center Crashes for macOS - Microsoft Learn
App Center supports crash reporting in macOS extensions. ... To mimic iOS behavior, set NSApplicationCrashOnExceptions flag before SDK ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found