Comments (7)
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.
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.
@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.
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 WhatsAppthis 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.
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.
I believe that the WP8 version also requires the "whole" file path too. Maybe this is your issue?
from cordova-plugin-file-opener2.
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)
- FileOpener2 error in electron 11 HOT 1
- Plugin is not handling Cookies in React project HOT 1
- Add documentation for error codes
- USB PORT PARAM HOT 1
- doesnt work with IOS and assets-library
- Usage in Capacitor HOT 1
- pdf opened in an external app cannot save changes HOT 1
- Cannot open file while is at app data location '/data/data/<app_id>/cache' HOT 2
- unable to open application/pdf format in Android device (Samsung Galaxy S21 and Samsung Galaxy S21+) HOT 2
- android.support.v4.content.FileProvider not found HOT 7
- Relative URIs are not supported.
- remove: android.permission.REQUEST_INSTALL_PACKAGES from plugins.xml HOT 85
- Text Open file in always localized in english (Android) HOT 4
- There was a problem parsing the package for android install apk HOT 1
- Can't edit file HOT 2
- Getting error after updating plugin to 4.0.0 on Android Studio HOT 2
- Unable to open some MP4 files on iOSοΌ HOT 1
- This plugin has a maintained forked repo now - please use and follow HOT 4
- Error: Current working directory is not a Cordova-based project.
- iPadOS not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-file-opener2.