capacitor-community / file-opener

Capacitor File Opener. The plugin is able to open a file given the mimeType and the file uri. This plugin is similar to cordova-plugin-file-opener2 without installation support.
MIT License
67 stars 13 forks source link

Error Code UNIMPLEMENTED #28

Closed infograisonmendoza closed 1 year ago

infograisonmendoza commented 1 year ago

The plugin keeps returnning "FileOpener plugin is not implemented on web" from a real mobile device (Android 10)

  1. Install capacitor file openner

  2. Import file opener to component

  3. Use it : fileOpener.open({ filepath: ' ', contentType })

  4. Return error on console Error: Uncaught (in promise): Error: "FileOpener" plugin is not implemented on web Error: "FileOpener" plugin is not implemented on web { "zone_symbolstate": 0, "zone_symbolvalue": { "code": "UNIMPLEMENTED" } }

ryaa commented 1 year ago

@infograisonmendoza I can not reproduce this problem. Can you please create a repository in the GitHub with the sample app demonstrating the problem?

ryaa commented 1 year ago

The problem can not be reproduced. Closing

desarrollo3-diapli commented 1 year ago

I have the same problem.

Using this code:

FileOpener.open({ filePath: this.rutasDoc[index].download, contentType: 'application/pdf'})
      .then(() => {
      })
      .catch(e => console.log('Error opening file...', e));

I get this error: Captura de pantalla 2023-02-21 a las 13 49 13

ryaa commented 1 year ago

@desarrollo3-diapli I can not reproduce this problem. Can you please create a repository in the GitHub with the sample app demonstrating the problem?

muuvmuuv commented 1 year ago

Maybe you forgot to cap sync? This message only comes if it is not implemented OR if you forgot to sync/update the native dependencies which will register them as a native plugin.

ryaa commented 1 year ago

The problem can not be reproduced. Closing

NikosChou commented 1 year ago

Hi, I had the same problem in ios. I managed to fix it following the instructions in https://capacitorjs.com/docs/ios/troubleshooting#plugin-not-implemented (removing the WKAppBoundDomains from Info.plist)