You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/12/22 09:43:39 UTC
[GitHub] [cordova-plugin-file] blgsyrmhnds opened a new issue #369:
LocalFileSystem is not defined
blgsyrmhnds opened a new issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369
Hi,
I have problem with cordova-plugin-file plugin
I want to use that plugin to access and search images and videos in user device(search by video or image name).Is that plugin provide this offline for IOS and Android?
I tried to install this,but it give LocalFileSystem is not defined error
I asked it here: https://stackoverflow.com/questions/59442901/phonegap-cordova-localfilesystem-is-not-defined
Can anyone give me any sample please(www folder because I can not install plugin,I have some issue in my pc.So I add plugin to config.xml manually)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568290775
Can you share your builded(www folder which include config.xml and index.html) please...Because I use build.phonegap.com platform,I don't use CLI(I will research CLI later...)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568294783
@breautek
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568285948
Thanks,It worked(alert 1) but now It give that error : window.requestFileSystem is not a function..Does this means that plugin is not installed?
here is my all config.xml
```
`<?xml version="1.0" encoding="UTF-8"?>
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.hybridsoftware.LiveTours"
version = "2.0"
versionCode = "14" >
<name>Lixx </name>
<description>
Live Electric Tours - GPS Audio Guide
</description>
<author href="hybridsoftware.net" email="info@hybridSoftware.net">
Live Electric Tours - GPS Audio Guide
</author>
<preference name="permissions" value="none"/>
<plugin name="cordova-plugin-geolocation" version="2.1.0">
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="This app uses your location for maps." />
</plugin>
<!-- <preference name="AndroidPersistentFileLocation" value="Internal" /> -->
<feature name="http://api.phonegap.com/1.0/file" />
<feature name="File">
<param name="android-package" value="org.apache.cordova.file.FileUtils" />
</feature>
<feature name="FileTransfer">
<param name="android-package" value="org.apache.cordova.filetransfer.FileTransfer" />
</feature>
<plugin name="cordova-plugin-file" source="npm"/>
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="phonegap-version" value="cli-6.5.0" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="17"/>
<preference name="android-targetSdkVersion" value="26"/>
<preference name="android-installLocation" value="auto" />
<preference name="DisallowOverscroll" value="true" />
<plugin name="cordova-plugin-splashscreen" source="npm" />
<access origin="*"/> <!-- allow all pages -->
<plugin name="cordova-plugin-whitelist" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<platform name="android">
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="SplashShowOnlyFirstTime" value="true"/>
<icon density="ldpi" src="res/icon/android/ldpi.png"/>
<icon density="mdpi" src="res/icon/android/mdpi.png"/>
<icon density="hdpi" src="res/icon/android/hdpi.png"/>
<icon density="xhdpi" src="res/icon/android/xhdpi.png"/>
<icon density="xxhdpi" src="res/icon/android/xxhdpi.png"/>
<icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png"/>
<!-- Portrait -->
<splash density="port-ldpi" src="res/screen/android/splash-port-ldpi.png"/>
<splash density="port-mdpi" src="res/screen/android/splash-port-mdpi.png"/>
<splash density="port-hdpi" src="res/screen/android/splash-port-hdpi.png"/>
<splash density="port-xhdpi" src="res/screen/android/splash-port-xhdpi.png"/>
<splash density="port-xxhdpi" src="res/screen/android/splash-port-xxhdpi.png"/>
<splash density="port-xxxhdpi" src="res/screen/android/splash-port-xxxhdpi.png"/>
<uses-permission name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
</platform>
<allow-navigation href="*" />
</widget>`
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek edited a comment on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568276481
Despite the [documentation](https://github.com/apache/cordova-plugin-file#create-a-persistent-file-) stating showing an example of `LocalFileSystem.PERSISTENT`, I think it's actually suppose to be `window.PERSISTENT` (logical guess since the `TEMPORARY` file system examples uses `window.TEMPORARY`)
Can you confirm for me? `window.PERSISTENT` should exactly equal to `1`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds edited a comment on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds edited a comment on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568293619
There is no file reader javascript code in Your index.html(or index.js) ,I added my own javascript code,it give same error
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568290971
[filetest.zip](https://github.com/apache/cordova-plugin-file/files/3992849/filetest.zip)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568291887
If you still have issues, please open up a new issue filling out the information requested (instead of deleting them)
Alternatively you can also ask on slack, which is a more appropriate place for support questions. Thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568286022
And here is my all index.html
`<!DOCTYPE html>
<html>
<head>
<title>FileReader Example</title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
// Wait for device API libraries to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// device APIs are available
//
function onDeviceReady() {
try {
alert(window.PERSISTENT);
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
document.addEventListener("deviceready", function() {
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
}, false);
}
catch(err) {
alert(err.message);
}
}
function gotFS(fileSystem) {
alert('gotFS start');
<!-- Bu bilgisayar\VIBE K5 Note\Dahili depolama birimi\Download -->
fileSystem.root.getFile("IISS_Paper_v2.0_KO.pdf", null, gotFileEntry, fail);
}
function gotFileEntry(fileEntry) {
fileEntry.file(gotFile, fail);
}
function gotFile(file){
alert('gotFile');
readDataUrl(file);
readAsText(file);
}
function readDataUrl(file) {
alert('readDataUrl');
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as data URL");
console.log(evt.target.result);
};
reader.readAsDataURL(file);
}
function readAsText(file) {
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as text");
console.log(evt.target.result);
};
reader.readAsText(file);
}
function fail(error) {
alert(error.code);
console.log(error.code);
}
</script>
</head>
<body>
<h1>Example 3</h1>
<p>Read File 3</p>
</body>
</html>`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568295713
Do you see that that code works?
```
alert(window.PERSISTENT);
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
```
I use same platform(android) and same version as you write above...I downloaded your filetest.zip but there is no code like this: window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
I modify your index.js like this but,I got some issue
index.JS
`/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var app = {
// Application Constructor
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
// deviceready Event Handler
//
// Bind any cordova events here. Common events are:
// 'pause', 'resume', etc.
onDeviceReady: function() {
this.receivedEvent('deviceready');
},
// Update DOM on a Received Event
receivedEvent: function(id) {
try {
alert(window.PERSISTENT);
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
}
catch(err) {
alert(err.message);
}
}
function gotFS(fileSystem) {
alert('gotFS start');
fileSystem.root.getFile("IISS_Paper_v2.0_KO.pdf", null, gotFileEntry, fail);
}
function gotFileEntry(fileEntry) {
fileEntry.file(gotFile, fail);
}
function gotFile(file){
alert('gotFile');
readDataUrl(file);
readAsText(file);
}
function readDataUrl(file) {
alert('readDataUrl');
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as data URL");
console.log(evt.target.result);
};
reader.readAsDataURL(file);
}
function readAsText(file) {
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as text");
console.log(evt.target.result);
};
reader.readAsText(file);
}
function fail(error) {
alert(error.code);
console.log(error.code);
}
};
app.initialize();`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds edited a comment on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds edited a comment on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568295713
I just want any work code that search for a file in device,I tried all solution but I didn't success it
Do you see that that code works ? @breautek
```
alert(window.PERSISTENT);
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
```
I use same platform(android) and same version as you write above...I downloaded your filetest.zip but there is no code like this: window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
I modify your index.js like this but,I got some issue
index.JS
```
`/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var app = {
// Application Constructor
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
// deviceready Event Handler
//
// Bind any cordova events here. Common events are:
// 'pause', 'resume', etc.
onDeviceReady: function() {
this.receivedEvent('deviceready');
},
// Update DOM on a Received Event
receivedEvent: function(id) {
try {
alert(window.PERSISTENT);
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
}
catch(err) {
alert(err.message);
}
}
function gotFS(fileSystem) {
alert('gotFS start');
fileSystem.root.getFile("IISS_Paper_v2.0_KO.pdf", null, gotFileEntry, fail);
}
function gotFileEntry(fileEntry) {
fileEntry.file(gotFile, fail);
}
function gotFile(file){
alert('gotFile');
readDataUrl(file);
readAsText(file);
}
function readDataUrl(file) {
alert('readDataUrl');
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as data URL");
console.log(evt.target.result);
};
reader.readAsDataURL(file);
}
function readAsText(file) {
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as text");
console.log(evt.target.result);
};
reader.readAsText(file);
}
function fail(error) {
alert(error.code);
console.log(error.code);
}
};
app.initialize();`
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568286382
Here is my www.zip if you want to test it
http://hybridsoftware.net/www.zip
Or if you have any sample can you share all www folder please ,thanks
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds edited a comment on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds edited a comment on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568286022
And here is my all index.html
```
`<!DOCTYPE html>
<html>
<head>
<title>FileReader Example</title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
// Wait for device API libraries to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// device APIs are available
//
function onDeviceReady() {
try {
alert(window.PERSISTENT);
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
document.addEventListener("deviceready", function() {
window.requestFileSystem(window.PERSISTENT, 0, gotFS, fail);
}, false);
}
catch(err) {
alert(err.message);
}
}
function gotFS(fileSystem) {
alert('gotFS start');
<!-- Bu bilgisayar\VIBE K5 Note\Dahili depolama birimi\Download -->
fileSystem.root.getFile("IISS_Paper_v2.0_KO.pdf", null, gotFileEntry, fail);
}
function gotFileEntry(fileEntry) {
fileEntry.file(gotFile, fail);
}
function gotFile(file){
alert('gotFile');
readDataUrl(file);
readAsText(file);
}
function readDataUrl(file) {
alert('readDataUrl');
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as data URL");
console.log(evt.target.result);
};
reader.readAsDataURL(file);
}
function readAsText(file) {
var reader = new FileReader();
reader.onloadend = function(evt) {
console.log("Read as text");
console.log(evt.target.result);
};
reader.readAsText(file);
}
function fail(error) {
alert(error.code);
console.log(error.code);
}
</script>
</head>
<body>
<h1>Example 3</h1>
<p>Read File 3</p>
</body>
</html>`
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568288098
What platform are you using?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568290256
I just tested the latest release version of the plugin, and both `window.PERSISTENT` & `LocalFileSystem.PERSISTENT` exists.
Please double check you're running the latest version of the plugin, and the latest version of the android platform.
You can find this information out by running the following commands:
`cordova platform ls`
`cordova plugin ls`
You should see:
```
Installed platforms:
android 8.1.0
cordova-plugin-file 6.0.2 "File"
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568289458
I use android phone(it is lenovo vibe k5).But I will use this in IOS tablet soon
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568276481
Despite the [documentation](https://github.com/apache/cordova-plugin-file#create-a-persistent-file-) stating showing an example of `LocalFileSystem.PERSISTENT`, I think it's actually suppose to be `window.PERSISTENT`.
Can you confirm for me? `window.PERSISTENT` should exactly equal to `1`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568295269
I can't really provide anymore assistance without knowing what versions of the cordova-android platform you are running and the version of the cordova-plugin-file.
When running the latest versions, I see everything available as expected after the `deviceready` event fires.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] blgsyrmhnds commented on issue #369:
LocalFileSystem is not defined
Posted by GitBox <gi...@apache.org>.
blgsyrmhnds commented on issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369#issuecomment-568293619
There is no file reader javascript code in Your index.html ,I added my own javascript code,it give same error
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek closed issue #369: LocalFileSystem
is not defined
Posted by GitBox <gi...@apache.org>.
breautek closed issue #369: LocalFileSystem is not defined
URL: https://github.com/apache/cordova-plugin-file/issues/369
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org