when I use "cordova-plugin-file" 2.1.0 version
Android work perfect
but now I use the latest "cordova-plugin-file" 3.0.0 version
all code are the same but function was broken
so I trace the release note
https://github.com/apache/cordova-plu...
the 3.0.0 version told us "Make Android default persistent file location internal"
for detail to this
https://github.com/apache/cordova-plu...
it must be add "AndroidPersistentFileLocation" attribute and set "Compatibility" in the config.xml otherwise it will use "Internal" value to default
I try to use this way in PGB's config.xml,but not work
Android work perfect
but now I use the latest "cordova-plugin-file" 3.0.0 version
all code are the same but function was broken
so I trace the release note
https://github.com/apache/cordova-plu...
the 3.0.0 version told us "Make Android default persistent file location internal"
for detail to this
https://github.com/apache/cordova-plu...
it must be add "AndroidPersistentFileLocation" attribute and set "Compatibility" in the config.xml otherwise it will use "Internal" value to default
I try to use this way in PGB's config.xml,but not work
- 730 Posts
- 18 Reply Likes
Posted 5 years ago
- 8261 Posts
- 263 Reply Likes
- 730 Posts
- 18 Reply Likes
- 8261 Posts
- 263 Reply Likes
No official announcement. Don't use it
I'll ask engineers about why it is listed. Meantime, stick with 5.1.1
Thanks.
I'll ask engineers about why it is listed. Meantime, stick with 5.1.1
Thanks.
(Edited)
- 730 Posts
- 18 Reply Likes
got it
thanks Amir
so you mean is if maybe future have a "AndroidPersistentFileLocation" attribute support in the "5.2.0" stable version ?
my question just want to ask this...
thanks Amir
so you mean is if maybe future have a "AndroidPersistentFileLocation" attribute support in the "5.2.0" stable version ?
my question just want to ask this...
- 8261 Posts
- 263 Reply Likes
Yes, most probably it will be included on 5.2.0 release.
Cheers
Cheers
- 730 Posts
- 18 Reply Likes
thanks Amir
hope one day can use 5.2.0 ASAP
hope one day can use 5.2.0 ASAP
- 8 Posts
- 1 Reply Like
Is there any update or maybe another solution? I wanted to publish my app but without a working file system, it is pretty useless :( Is there maybe another way to make window.requestFileSystem point to the good old "/storage/emulated/0" instead of "/data/data/{android package}/files/files/"?
- 5 Posts
- 0 Reply Likes
@Martin Buchalik : Even i am looking for the same solution what you are looking for
- 730 Posts
- 18 Reply Likes
- 57 Posts
- 0 Reply Likes
I'm using the following in my config.xml:
but when I call
<preference name='phonegap-version' value='cli-5.2.0' />
<gap:plugin name="cordova-plugin-file" version="3.0.0" source="npm"/>
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
but when I call
directoryEntry.nativeURL() I still get "file:///data/data/appid/...".- 57 Posts
- 0 Reply Likes
Going back to
<gap:plugin name="cordova-plugin-file" version="2.1.0" source="npm"/> fixes the issue as the change is in version 3.- 730 Posts
- 18 Reply Likes
hi Phone Gapps
ya...going back to 2.1.0 version can Temporary solve the issue
but in fact,PGB should support "AndroidPersistentFileLocation" attribute
but for now there is no any reply
ya...going back to 2.1.0 version can Temporary solve the issue
but in fact,PGB should support "AndroidPersistentFileLocation" attribute
but for now there is no any reply
- 57 Posts
- 0 Reply Likes
Yes obviously we should be able to use v3.0.0 on PGB.
I ended up using v3.0.0 but I now explicitly use
I'll be able to remove the hack once PGB handles
I ended up using v3.0.0 but I now explicitly use
cordova.file.externalRootDirectory on Android instead of relying on fileSystem.root which in v3.0.0 defaults to cordova.file.applicationStorageDirectory.
I'll be able to remove the hack once PGB handles
AndroidPersistentFileLocation correctly.- 730 Posts
- 18 Reply Likes
hi Amir
is there any update progress about "AndroidPersistentFileLocation" ?
is there any update progress about "AndroidPersistentFileLocation" ?
- 730 Posts
- 18 Reply Likes
hi PGB team
any reply about this ?
"AndroidPersistentFileLocation" attribute support ?
any reply about this ?
"AndroidPersistentFileLocation" attribute support ?
- 8 Posts
- 1 Reply Like
@ColinBau
I think I have found a solution that works on my application even without AndroidPersistentFileLocation.
Have you already looked at
? This might be what you need...
I think I have found a solution that works on my application even without AndroidPersistentFileLocation.
Have you already looked at
window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory, function(dirEntry) {
// Some function here
})
? This might be what you need...
- 730 Posts
- 18 Reply Likes
thanks @Martin Buchalik
I will try your way
well...
in the latest 4.0 version (although the "npm" have not already the latest verison)
https://github.com/apache/cordova-plu...
you can see the keywords
"Do not inject default AndroidPersistentFileLocation into config.xml"
so I guess,if PGB someday can use latest 4.0 version,maybe will solve this issue
I will try your way
well...
in the latest 4.0 version (although the "npm" have not already the latest verison)
https://github.com/apache/cordova-plu...
you can see the keywords
"Do not inject default AndroidPersistentFileLocation into config.xml"
so I guess,if PGB someday can use latest 4.0 version,maybe will solve this issue
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 60 Followers
-
PhoneGap Build
- 15111 Conversations
- 274 Followers





