Coder Social home page Coder Social logo

window.requestFileSystem about cordova-windows HOT 2 CLOSED

apache avatar apache commented on May 30, 2024
window.requestFileSystem

from cordova-windows.

Comments (2)

janpio avatar janpio commented on May 30, 2024

This is not really a cordova-windows question, but something that concerns cordova-plugin-file.

That being said, is window.requestFileSystem a thing the plugin adds or a general browser API? Should this API be available on Windows?
Does the request of the actual plugin work as expected (is cordova.file present and looking good)?

from cordova-windows.

janpio avatar janpio commented on May 30, 2024

Code for the functionality lives here:
https://github.com/apache/cordova-plugin-file/blob/c609ff6f59d23d0bcbfe92c5eb81665e3df41027/src/windows/FileProxy.js#L1138-L1158


I just created a Cordova Windows app and added the file plugin:

E:\Projects\throwaway
λ cd cordovaWindowsFile\

E:\Projects\throwaway\cordovaWindowsFile  ([email protected])
λ cordova platform add windows
Using cordova-fetch for cordova-windows@^7.0.0
Adding windows project...
Creating Cordova Windows Project:
        Path: platforms\windows
        Namespace: io.cordova.hellocordova
        Name: HelloCordova

Windows project created with [email protected]
Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for windows
Adding cordova-plugin-whitelist to package.json

E:\Projects\throwaway\cordovaWindowsFile  ([email protected])
λ cordova plugin add cordova-plugin-file
Installing "cordova-plugin-file" for windows
Adding cordova-plugin-file to package.json

E:\Projects\throwaway\cordovaWindowsFile  ([email protected])
λ

When I ran it with cordova run windows and connected to the WebView with Microsoft Edge DevTools, I got this in the console:

image

So I would say this works as intended.


If this doesn't help, please reply to this issue and I will be happy to reopen it.

from cordova-windows.

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.