Skip to content

message":"not implemented","code":"UNIMPLEMENTED" #112

@datoiashvili713

Description

@datoiashvili713

Describe the bug
A clear and concise description of what the bug is.
I have created everything, tried to use getMedias and i got not implemented error
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
To open library to upload video/images
Screenshots
If applicable, add screenshots to help explain your problem.

Device Info (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
const resp: MediaResponse = await Media.getMedias({ types: "all", quantity: 10 });
if (resp.medias.length === 0) throw new Error("No media selected");

results = await Promise.all(
  resp.medias.map(async (asset) => {
    const path = asset.data
      ? asset.data
      : (await Media.getMediaByIdentifier({ identifier: asset.identifier })).path;

    const file = await Filesystem.readFile({ path });

    const base64Data = typeof file.data === "string" ? file.data : "";
    return `data:${asset.duration != null ? "video/mp4" : "image/jpeg"};base64,${base64Data}`;
  })
);

this is code that i tried to use, i got not implemented error,
-permission android:name="android.permission.RECORD_AUDIO" />







i have almost all possible permissions , also added Media: {
androidGalleryMode: true,
},
this inside capcaitor.config.ts, what else do i need?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions