Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: Implement cordova plugin #1

Open
wants to merge 15 commits into
base: development
Choose a base branch
from

Conversation

OS-pedrogustavobilro
Copy link
Collaborator

Description

Implement the cordova plugin with the following methods:

  • openDocumentFromLocalPath
  • openDocumentFromResources
  • openDocumentFromUrl
  • [iOS specific] previewMediaContentFromLocalPath
  • [iOS specific] previewMediaContentFromResources
  • [iOS specific] previewMediaContentFromUrl

Also implement an outsystems-wrapper layer that can consume the cordova or capacitor plugin (whichever is defined).

Notes

The plugin is only implemented on Android and iOS, because the Outsystems consumer has its own implementation for PWA.

While the previewMediaContentFrom(...) methods are offered for iOS only, Android defaults to using openDocumentFrom(...) methods. We don't return an error here to maintain the same behavior as the current cordova plugin.

Tests

Used a "NewFileSampleApp" on Outsystems O11 that uses this plugin - Tested native Android, iOS, and PWA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants