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

Keyboard behind viewcontroller when launched app launched from local notification #64

Closed
cswelin opened this issue Jun 25, 2014 · 8 comments

Comments

@cswelin
Copy link

cswelin commented Jun 25, 2014

When launching an app from a UILocationNotification the keyboard is missing or behind the controller..

Can be reproduced by firign a local notification and launching the app via the notification.

@ivdma
Copy link

ivdma commented Sep 4, 2015

This happens to me even without notification. When I press on the app icon, lock screen appears without the keyboard.

@rolandleth
Copy link
Owner

On a real device too? Because I had this problem on the simulator, but on a device it was working properly.

@ivdma
Copy link

ivdma commented Sep 4, 2015

Yeah, real device has this too. I had this on the simulator first, but appeared to be a problem with Hardware Keyboard being connected. On the real device it happens when app starts for the first time. After home button is pressed and app icon tapped, keyboard appears again.

Could it be me calling - showLockScreenWithAnimation(etc) from application: application didFinishLaunchingWithOptions: options? i.e.: should I call it from initial view controller?

@rolandleth
Copy link
Owner

You can try to call it still from there, but after you init and set your rootViewController. If it still doesn't work, try it as you said, from your main viewController and let me know, please; I will look at it, but I'm currently on a trip.

@ivdma
Copy link

ivdma commented Sep 4, 2015

I've tried to call passcode in app delegate after the rootViewController was instantiated and window made key and visible. Still no keyboard first time. Now I've put lock screen into root view controller and it works fine. Thanks for your answers. Have a nice trip!

@rolandleth
Copy link
Owner

Good to hear! Thanks :)

@511430
Copy link

511430 commented Sep 20, 2015

I had the same issue, I tried calling the showLockScreenWithAnimation() from my navigation controller instead of my AppDelegate, this still didn't work, but I have found a solution.
The solution was to call the method from the main thread which works perfectly!

@rolandleth
Copy link
Owner

Judging by the last 2 comments, I guess I can close this issue, right?

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

4 participants