Skip to content
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

Warning: Attempt to present UIAlertController on VC1 which is already presenting VC2 #91

Open
reganApe opened this issue Jun 8, 2018 · 1 comment

Comments

@reganApe
Copy link

reganApe commented Jun 8, 2018

I have configured Airbrake as described in the docs but as soon as my app starts it attempts to present an alert on my rootVC. But the root VC is already presenting another VC so this fails.

This is the code which attempts to present from ABNotifier.m

[[[UIApplication sharedApplication] delegate].window.rootViewController presentViewController:alert animated:YES completion:nil];

This is the failure message

2018-06-07 14:05:08.634650+0800 ape-mobile[91222:4325460] Warning: Attempt to present <UIAlertController: 0x7f852c82ec00> on <SignInViewController: 0x7f8529dc9490> which is already presenting <SignInPageViewController: 0x7f852b027600>

@Kennyfai
Copy link

2018-06-07 14:05:08.634650 + 0800 ape-mobile:尝试在SignInViewController:上呈现 UIAlertController:已经呈现SignInPageViewController

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants