nativescript-camera icon indicating copy to clipboard operation
nativescript-camera copied to clipboard

how to access photo taken location

Open manikandan231 opened this issue 5 years ago • 4 comments

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

  • iOS/Android/Both
  • iOS/Android versions
  • emulator or device. What type of device?

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

  • CLI: (run tns --version to fetch it)
  • Cross-platform modules: (check the 'version' attribute in the node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
  • Plugin(s): (look for the version numbers in the package.json file of your project and paste your dependencies and devDependencies here)

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

Is there any code involved?

  • provide a code example to recreate the problem
  • (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.

manikandan231 avatar Feb 22 '20 06:02 manikandan231

You could use imageAssetURL

            takePicture({})
                .then((imageAsset: any) => {
                    console.log("Taken picture: " + that.imageAssetURL(imageAsset))
                 });

map7 avatar Apr 30 '20 04:04 map7

that.imageAssetURL not found it shows @map7

ann1111 avatar Jun 24 '20 09:06 ann1111

ok done resolve we can get like this way console.log(imageAsset._android);

ann1111 avatar Jun 24 '20 10:06 ann1111

@ann1111 how to get it for iOS, for iOS imageAsset._ios is empty

itsmerockingagain avatar Jul 09 '21 11:07 itsmerockingagain