🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@whiteguru/capacitor-plugin-file-opener

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whiteguru/capacitor-plugin-file-opener

Capacitor plugin to open files

7.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

capacitor-plugin-file-opener

Capacitor plugin to open files

Install (Capacitor 7.x)

npm install @whiteguru/capacitor-plugin-file-opener
npx cap sync

or for Capacitor 6.x

npm install @whiteguru/capacitor-plugin-file-opener@^6.0.1
npx cap sync

or for Capacitor 5.x

npm install @whiteguru/capacitor-plugin-file-opener@^5.0.0
npx cap sync

or for Capacitor 4.x

npm install @whiteguru/capacitor-plugin-file-opener@^4.0.0
npx cap sync

or for Capacitor 3.x

npm install @whiteguru/capacitor-plugin-file-opener@1.1.4
npx cap sync

Setup Android

Add or update next lines inside <manifest> tag on your AndroidManifest.xml

<manifest>

  <!-- Rest of manifest -->

  <queries>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
      <data android:mimeType="application/pdf" />
    </intent>
  </queries>
</manifest>

API

  • open(...)
  • Interfaces

open(...)

open(options: FileOpenerOptions) => Promise<void>
ParamType
optionsFileOpenerOptions

Interfaces

FileOpenerOptions

PropTypeDescription
pathstringPath to file
mimestringMime to select (optional, android only)

Keywords

capacitor

FAQs

Package last updated on 20 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts