1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Capacitor Camera plugin returns “Unimplemented” on Android device even though plugin is...

Discussão em 'Angular' iniciado por Midhun Manu, Novembro 21, 2025.

  1. Midhun Manu

    Midhun Manu Guest

    I have an Angular + Capacitor 7 app.

    Camera plugin works in the browser, but on a real Android device I always get:

    UNIMPLEMENTED


    • @capacitor/camera 7.0.2


    • Angular 17


    • Android 13 physical device


    • Project is NOT a TWA — it is a full native Android app with plugins


    • App ID: com.bytephase.app.twa (just a name, not a TWA)

    Behavior


    • Capacitor.isNativePlatform() returns true


    • Other plugins work:


    • Geolocation → OK


    • Background Geolocation → OK

    code:

    async takePicture() {
    alert(`${Capacitor.getPlatform()} || ${Capacitor.isNativePlatform()}`)
    try {
    const permission = await Camera.requestPermissions({
    permissions: ['camera', 'photos']
    });
    alert(JSON.stringify(permission));
    } catch (err) {
    alert("exception in getting permission");
    alert(JSON.stringify(err));
    }

    try {
    const image = await Camera.getPhoto({
    quality: 90,
    allowEditing: false,
    resultType: CameraResultType.Uri,
    saveToGallery: false,
    });
    const imageURL = image.webPath;
    alert(imageURL);
    } catch(err) {
    alert("Exception in get photo");
    alert(JSON.stringify(err));
    }
    }


    Camera plugin alone fails

    Continue reading...

Compartilhe esta Página