-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Taking picture from dialog not working on iOS #227
Comments
Hi @izub |
Hi, I am also getting this issue but for me it is occuring when I try and call It appears that the UINavigationControllerImpl that is used for the TabContentItem is somehow detatched from the window hierarchy and so the modal for taking a picture does not show. I meddled with some of the plugin code and found that when I replaced the block at
with
The modal worked again because the root view controller of course is part of the window hierarchy |
I would love to contribute, maybe add an option to just use the root view controller, for those of us that are trying to use this plugin inside of BottomNavigation, Please let me know what you think. |
I had the same problem calling takePicture in a random vue component( @alpha-nero1 solution solved the problem ), and opening it in a modal i had a different problem: it don't throw error but the camera opens behind the modal. it seems to be related to the parent frame(component/view) of the camera, seems it's aways the root, would be nice if there is any options for we choose the parent frame for the camera open. |
Which platform(s) does your issue occur on?
iOS 12.4.1 on iPhone 8
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Given a nativescript angular app where a custom fullscreen dialog is opened. This dialog has a button which will call
takePicture
on tapping it. It should open the native camera app. Instead, nothing happens while the following error is thrown in the consoleThe text was updated successfully, but these errors were encountered: