-
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
Unable to create bitmap! #642
Comments
I have the same issue on Android 11 (API 30) only. Running on Android 10 (API 29), everything works as normal. If I try to load an image from the library ( Environment, Platform, DeviceEmulated Android 11 - R (API 30) Version information
|
Had this happen on a production user too
Not much other info. Hopefully this helps |
I am still seeing this issue. Any solution for this ? |
The storage has changed after Android11, and the APP can only access its own private directory or public directory, and cannot access the private directory of other apps. You call the system’s built-in crop that does not belong to your app, and access to your app’s private directory is not allowed. Please add the following compatible code to the createCaptureFile method. if (Build.VERSION.SDK_INT >= 30) { ` |
@epetre is this issue still happening with the latest version? |
@PieterVanPoyer Yes I am still facing same issue with latest version. var options = { |
@xuyonghua Perfect solution , |
For anyone still facing this issue with ionic 3, or anyu version with this plugin, it only happens when you set the options to
|
The same mistake (error in JavaScript onFail), different reasons and Solutions A suggestion, try view Android studio logcat |
resolved,thx~~ |
@xuyonghua sir can you tell me where we put above code? |
Bug Report
Crashlytics is giving us "Unable to create bitmap!" error for some users who try to take a picture.
Problem
An error happens as the user uploads what seems to him as a valid picture and he is stuck on that page because we require a picture.
What is expected to happen?
Just a normal flow of taking a picture and getting it's URL.
What does actually happen?
An error occurs and the user is stuck there "Unable to create bitmap!"
Information
So I don't have more information than what Crashlytics gives me other than the fact that it happens 100% of the time on Android and the below code and environment details.
Command or Code
//Not sure exactly where in the plugin, but here is how we call it.
Environment, Platform, Device
Android, no specific version stands out.
Version information
Checklist
The text was updated successfully, but these errors were encountered: