Skip to content

[android] No path for returned image(s) #333

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

Open
kryoware opened this issue Dec 9, 2020 · 1 comment
Open

[android] No path for returned image(s) #333

kryoware opened this issue Dec 9, 2020 · 1 comment

Comments

@kryoware
Copy link

kryoware commented Dec 9, 2020

This occurs on a few of the Huawei devices in our test suite or if the image is in external storage. I cannot migrate to NS7 since it breaks some of the essential plugins we use. Any advice is appreciated.

On NS7 with the @nativescript/imagepicker (1.x) - Works as expected.
On NS6 with the nativescript-imagepicker (7.x) - This is what I get if I stringify the image

{
  "_observers": {},
  "_options": {
    "keepAspectRatio": true,
    "autoScaleFactor": true
  },
  "_android": ""
}

I also applied the workaround for permissions here:

Please, provide the following version numbers that your issue occurs with:

  • CLI: 7.0.11
  • Cross-platform modules: "tns-core-modules": "^6.5.15"
  • Runtime: "tns-android": "6.5.3"

https://github.com/kryoware/imagepicker-issue

main: NS6
ns7: NS7

I build main branch using --force

@davecoffin
Copy link

Path is now returned in selection[0].path in 2.0.0 :)

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

2 participants