Closed AnthonyLenglet closed 2 years ago
I am seeing the same thing, it does not work for me unless I use nativescript@6.7.4 to build anything higher and I see this behavior.
For me it was down to tarketSDK, newer cli defaulting it to 30, changing it to 29 in settings.json and it now works.
Same issue here
I believe the issue is that the plugin is currently only compatible with API level 28. At API level 29, adding android:requestLegacyExternalStorage="true"
to the app manifest is available as a workaround, but this option is no longer available at API level 30.
I am experiencing the same problem.
Phone: Google Pixel (3a &4XL) Android version: 11 tns-android: 6.5.3 nativescript/core: 6.5.12 nativescript-camera: 4.5.0
This problem did not exist with Android 10 or with any other brand of phone (only Google Phones)
I also don't understand the following suggestion "nativescript@6.7.4" -> there is no nativescript/core version 6.7.4!
Trial and error has determined the problem to be the following condition: " if (takePictureIntent.resolveActivity(utils.ad.getApplicationContext().getPackageManager()) != null) " -> found in /node_modules/nativescript-camer/camera.android.js -> If the condition is deleted, then the camera opens!
I would very much appreciate suggestions on how to reactive the camera function, without forking the project and deleting the condition.
Thank you for your help!
Hi All, Can anyone provide a solution for this issue in android 11? seems like NS is not supporting latest OS android 11 on NS6
Same thing here... Any update?
Same thing here... Any update?
I haven't personally touched the project in a bit, but we're not getting any issues on our end anymore since having updated everything to "@nativescript/camera": "^5.0.6"
and "@nativescript/core": "~8.1.1"
since this no longer seems to be a problem on the newer version, I will close this issue
Which platform(s) does your issue occur on?
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.
Whenever we try to take a picture, the camera never pops up, and no error is given in the console
Is there any code involved?