Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FEATURE] add appIsInstalled feature #31

Open
pawellesniowski opened this issue Feb 10, 2023 · 3 comments
Open

[FEATURE] add appIsInstalled feature #31

pawellesniowski opened this issue Feb 10, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@pawellesniowski
Copy link

Thank you SO much for your plugin it helped me a lot with PDF files, however, I have a big problem with opening .DOCX files. I am not able to use the Cordova file opener, so I gladly jumped on community version.

Cordoba file-opener has a method to check whether we have an app to open .docx files:
capacitorFileOpener.appIsInstalled(userDocument.appId), then we install the appropriate app and we can open .docx files

In the capacitor-community file opener, we do not have the option to look for the app,
Opening with the community file opener does not work eighter:

const  docksMimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
FileOpener.open({ filePath: downloadedPath, contentType: docksMimeType, openWithDefault: false })

So question/feature request is:
How we can open .docx files with your plugin.

Thank you!

@ryaa ryaa self-assigned this Feb 10, 2023
@ryaa
Copy link
Member

ryaa commented Feb 14, 2023

There is no appIsInstalled method, similar to https://github.com/pwlin/cordova-plugin-file-opener2#fileopener2appisinstalledpackageid-callbackcontext right now, so this looks like this is a feature request.
PR is welcomed :)

@ryaa ryaa changed the title Opening Docx files [FEATURE] add appIsInstalled feature Feb 14, 2023
@ryaa ryaa added the enhancement New feature or request label Feb 14, 2023
@Galvictor
Copy link

Galvictor commented Mar 2, 2023

pdf, docx and xlsx works fine but pptx is not working is give me an error:

image

@Galvictor
Copy link

Now it worked! I had to install a pptx viewer on my cellphone.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants