Skip to content

Unable to open image file in android #313

@lim-enhui

Description

@lim-enhui

Expected Behaviour

Open an Image File

Actual Behaviour

2020-11-19 20:57:09.790 7302-7408/io.ionic.starter V/Capacitor/Plugin: To native (Cordova plugin): callbackId: FileOpener2698958239, service: FileOpener2, action: open, actionArgs: ["content://com.android.providers.media.documents/document/image%3A25","image/jpeg"]
2020-11-19 20:57:09.798 7302-7302/io.ionic.starter I/Capacitor/Console: File: http://localhost/default~tab2-tab2-module~tab3-tab3-module-es2015.js - Line 2823 - Msg: Error opening file

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 10

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Pixel 4XL

Cordova CLI info

cordova info

Here is the output:

Plugin version

cordova plugin version | grep cordova-plugin-file-opener2

Here is the output:

cordova-plugin-file-opener2 (3.0.5)

Sample Code that illustrates the problem

Logs taken while reproducing problem

Run

adb logcat PluginManager:V CordovaPlugin:V CordovaLog:V chromium:V *:S

while testing the bug in your app to get some output from your error. This will help you to understand more about the nature of your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions