-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Screen flashes white on function call, and "discovery" error #462
Comments
Weirdly it works as it should if I call the navigator.camera.getPicture function from the console in Safari when it's set up to point to the app on my iPhone, just not if I call the function from within the app. If that helps at all... |
Figured this out - it's because I had the button inside a form face-palm |
Any insight how this influences it? |
I wish I had more expert insight, but I can only guess that because the button is inside a form with "method=POST" assigned to it, despite the fact that there's a 'submit' button at the bottom of the form, said form treats this other button as a submit button too, so it fires the post method, which refreshes the app for whatever reason, breaking the plugin function. I could be totally wrong about what was happening, but I know that moving the 'add image' button outside of the form fixed it - I figured it out because the same 'white flash' was happening even if the function just logged to the console. |
stale |
#425
Bug Report
Problem
When I fire off the function to select an image from the camera roll, the device screen flashes white and pauses slightly before opening the camera roll.
The pause is less with each press, but the flashing white screen still occurs - judging by my console logs, whenever I fire off the getCamera function, the app is being re-initialized (see screenshot - 'Open DB' should only be happening on app init.
The camera roll does load, but when I select an image, I receive the following error:
[discovery] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
Initially, I wasn't receiving a permissions request for the camera roll so I had to wrap the function in a cordova.diagnostic request function, so now I KNOW permission to access the camera roll is granted.
What is expected to happen?
The camera roll prompt loads without a visual error and I can access the picture in the functions success callback.
What does actually happen?
See problem above ^^^
Information
Happens on both emulated and physical devices
Command or Code
handleCameraRollPermission is fired from an onClick event
Environment, Platform, Device
Physical iPhone 6s - iOS 12.4
Simulated iPhone Xr - iOS 12.2
Version information
"cordova-android": "^8.0.0",
"cordova-android-firebase-gradle-release": "^3.0.0",
"cordova-android-play-services-gradle-release": "^3.0.0",
"cordova-browser": "^6.0.0",
"cordova-custom-config": "^5.1.0",
"cordova-ios": "^5.0.1",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-wkwebview-engine": "^1.1.4",
"cordova-sqlite-storage": "3.2.0",
"cordova.plugins.diagnostic": "4.0.12",
"react": "^16.8.6"
Xcode 10.2.1
Mac OS X Mojave
Checklist
The text was updated successfully, but these errors were encountered: