Code Monkey home page Code Monkey logo

Comments (7)

Gillardo avatar Gillardo commented on July 20, 2024

Not too sure, i can have a look soon, but i use the windows version now
(windows 8.1) as that offers you this exact functionality

On Wed, Aug 12, 2015 at 3:27 PM, escolhatecnologia <[email protected]

wrote:

@Gillardo https://github.com/Gillardo

I need to open "app chooser"
not default application
Is it possible on wp8?

your code only open a audio player(default application):
Windows.System.Launcher.LaunchFileAsync(file);

https://github.com/pwlin/cordova-plugin-file-opener2/blob/master/src/wp8/FileOpener2.cs#L29

β€”
Reply to this email directly or view it on GitHub
#36.

from cordova-plugin-file-opener2.

Gillardo avatar Gillardo commented on July 20, 2024

You may want to have a look at the windows version and see if you can pass in a parameter like the windows version.

Windows allows you to supply options like so

var options = new Windows.System.LauncherOptions();
options.displayApplicationPicker = true;

Then you call it using this

Windows.System.Launcher.launchFileAsync(file, options)

from cordova-plugin-file-opener2.

escolhatecnologia avatar escolhatecnologia commented on July 20, 2024

@Gillardo i need open a audio, then "app chooser" and choose WhatsApp

this doesn't work on wp 8.1:
options.displayApplicationPicker = true;

with audio file this opens audio player app (default app)
doesn't open "app chooser"

any suggestion?
Thanks

from cordova-plugin-file-opener2.

Gillardo avatar Gillardo commented on July 20, 2024

Have u got more than 1 audio app installed on the device?

I use it with pdf files and it gives me options of all pdf viewers

Also what are you passing in as the "file" parameter? Just the file name, or the whole file path?

On 18 Aug 2015 12:23 am, "escolhatecnologia" [email protected]
wrote:

@Gillardo https://github.com/Gillardo i need open a audio, then "app
chooser" and choose WhatsApp

this doesn't work on wp 8.1:
options.displayApplicationPicker = true;

with audio file this opens audio player app (default app)
doesn't open "app chooser"

any suggestion?
Thanks

β€”
Reply to this email directly or view it on GitHub
#36 (comment)
.

from cordova-plugin-file-opener2.

Gillardo avatar Gillardo commented on July 20, 2024

What extension have the audio files got? Are they compatible with the audio apps you have installed? Can you try it with a PDF file to confirm that you see the chooser then?

from cordova-plugin-file-opener2.

Gillardo avatar Gillardo commented on July 20, 2024

I believe that the WP8 version also requires the "whole" file path too. Maybe this is your issue?

from cordova-plugin-file-opener2.

pwlin avatar pwlin commented on July 20, 2024

I think there is a misconception about what this plugin does here :)
This plugin launches a file you are trying to open in one of the applications already registered as player/opener/launcher of that particular file type. So the subsequent "App Chooser" dialog in different platforms is not an all-in dialog box to open any kind of file in any randomly selected app on the device. It only shows those apps which already registered themselves as being capable of opening/playing/launching that file type.

@escolhatecnologia is trying to open an audio file in Whatsapp. But Whatsapp is obviously not an audio player :) That is why I really think you should look into other kind of plugins, something that can "send" or "share" your file with other apps. In Android world, it's called ACTION_SEND intent which gives you a dialog like:

Is there any equivalent of Android's ACTION_SEND intent in WP8?

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.