Code Monkey home page Code Monkey logo

Comments (3)

pwlin avatar pwlin commented on June 22, 2024

Hi @sikron,
Thanks for your suggestion. The problem I am facing at the moment is that I don't own any iDevices, so any extra method I implement would be Android-only. I think this might be a problem in the long run, as normally PhoneGap/Cordova functions should be cross-platform. But on the other hand, I already have 2 Android-only functions (uninstall and appIsInstalled) so I really have some mix feelings about adding more Android-only functions.

What are your thought? Do you need this particular function cross-platform or only on Android?

from cordova-plugin-file-opener2.

sikron avatar sikron commented on June 22, 2024

Hi,
As this plugin also supports iOS i thought that you would also know how to implement it in iOS.
I agree with you, that both platforms should support the whole functionality, so a further Android-specific version would not be in the cross-platform sense.
I actually would need it in Android and iOS of course :-) Maybe i can ask a iOS-dev-colleague for help. I will come back to you again.

bye!

from cordova-plugin-file-opener2.

sikron avatar sikron commented on June 22, 2024

Hi,
my colleague tells me, that on iOS this is not so straight-forward. On iOS you have this UIDocumentInteractionController, which accepts files and either opens them directly or shows a grey modal containing apps, which can open the file. But it does not provide a "canOpen" functionality unfortunately.

My actual use-case was to check, whether the device can open a file, so to know, whether to download it in the first place (and thus maybe save megabytes of data-traffic).

So from my point of view, no common denominator here, unfortunately. :-(

from cordova-plugin-file-opener2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.