[
https://issues.apache.org/jira/browse/CB-9220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14598290#comment-14598290
]
Matthew Horn commented on CB-9220:
----------------------------------
I reproduced this on a Samsung Galaxy S3, Genymotion (HTC One 4.4.4),
Genymotion (Custom 5.0.0).
Here is my 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"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "com.myapp.app.myapp"
version = "0.0.0"
versionCode = "0">
<name>MyApp</name>
<description>
My App
</description>
<author href="http://www.myapp.com" email="[email protected]">
My App Team
</author>
<!--
If you do not want any permissions to be added to your app, add the
following tag to your config.xml; you will still have the INTERNET
permission on your app, which PhoneGap requires.
-->
<preference name="permissions" value="none" />
<!-- Customize your app and platform with the preference element. -->
<preference name="phonegap-version" value="cli-5.1.1" />
<!-- all: current version of PhoneGap -->
<preference name="orientation" value="default" />
<!-- all: default means both landscape and portrait are enabled -->
<preference name="target-device" value="universal" />
<!-- all: possible values handset, tablet, or universal -->
<preference name="fullscreen" value="true" />
<!-- all: hides the status bar at the top of the screen -->
<preference name="prerendered-icon" value="true" />
<!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's
icon on the user's home screen -->
<preference name="ios-statusbarstyle" value="black-opaque" />
<!-- ios: black-translucent will appear black because the PhoneGap webview
doesn't go beneath the status bar -->
<preference name="detect-data-types" value="true" />
<!-- ios: controls whether data types (such as phone no. and dates) are
automatically turned into links by the system -->
<preference name="exit-on-suspend" value="false" />
<!-- ios: if set to true, app will terminate when home button is pressed -->
<preference name="webviewbounce" value="false" />
<preference name="stay-in-webview" value="false" />
<!-- ios: external links should open in the default browser, 'true' would use
the webview the app lives in -->
<preference name="show-splash-screen-spinner" value="true" />
<!-- ios: if set to false, the spinner won't appear on the splash
screen during app loading -->
<preference name="auto-hide-splash-screen" value="true" />
<!-- ios: if set to false, the splash screen must be hidden using a JavaScript
API -->
<preference name="disable-cursor" value="false" />
<!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app
-->
<preference name="android-minSdkVersion" value="14" />
<!-- android: MIN SDK version supported on the target device. MAX version is
blank by default. -->
<preference name="android-targetSdkVersion" value="19" />
<!-- SDK 14 = Android 4.0.x ICS -->
<preference name="android-installLocation" value="internalOnly" />
<!-- android: app install location. 'auto' will choose. 'internalOnly' is
device memory. 'preferExternal' is SDCard. -->
<preference name="AndroidPersistentFileLocation" value="Internal" />
<preference name="iosPersistentFileLocation" value="Library" />
<!-- Plugins -->
<!-- Core plugins -->
<!-- NPM plugins -->
<gap:plugin name="cordova-plugin-battery-status" source="npm" />
<gap:plugin name="cordova-plugin-camera" source="npm" />
<gap:plugin name="cordova-plugin-console" source="npm" />
<gap:plugin name="cordova-plugin-device" source="npm" />
<gap:plugin name="cordova-plugin-device-orientation" source="npm" />
<gap:plugin name="cordova-plugin-dialogs" source="npm" />
<gap:plugin name="cordova-plugin-file" source="npm" />
<gap:plugin name="cordova-plugin-geolocation" source="npm" />
<gap:plugin name="cordova-plugin-globalization" source="npm" />
<gap:plugin name="cordova-plugin-network-information" source="npm" />
<gap:plugin name="cordova-plugin-splashscreen" source="npm" />
<gap:plugin name="cordova-plugin-statusbar" source="npm" />
<gap:plugin name="cordova-plugin-whitelist" source="npm" />
<gap:plugin name="cordova-plugin-file-transfer" source="npm" />
<gap:plugin name="cordova-plugin-inappbrowser" source="npm" />
<!-- Third party plugins -->
<gap:plugin name="net.bgta.phonegap.plugin.appversion" version="1.1.1"
/>
<gap:plugin name="com.appnovation.ppw-camera" version="1.0.12" />
<!--<gap:plugin name="com.brodysoft.sqliteplugin.nocloud"
version="1.0.3" />-->
<!--<gap:plugin name="com.brodysoft.sqliteplugin" version="1.0.6" />-->
<gap:plugin name="io.litehelpers.cordova.sqlite" version="0.7.8" />
<!-- Define app icon for each platform. -->
<icon src="res/icon.png" />
<!-- Android -->
<icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android"
gap:density="ldpi" gap:qualifier="ldpi" />
<icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android"
gap:density="mdpi" gap:qualifier="mdpi" />
<icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android"
gap:density="hdpi" gap:qualifier="hdpi" />
<icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android"
gap:density="xhdpi" gap:qualifier="xhdpi" />
<!--<icon src="res/icon/android/icon-144-xxhdpi.png"
gap:platform="android" gap:density="xxhdpi" />-->
<!-- iOS 7+ -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios7/icon-60.png" gap:platform="ios" width="60"
height="60" />
<icon src="res/icon/ios7/[email protected]" gap:platform="ios" width="120"
height="120" />
<!-- iPad -->
<icon src="res/icon/ios7/icon-76.png" gap:platform="ios" width="76"
height="76" />
<icon src="res/icon/ios7/[email protected]" gap:platform="ios" width="152"
height="152" />
<!-- Settings Icon -->
<icon src="res/icon/ios7/icon-small.png" gap:platform="ios" width="29"
height="29" />
<icon src="res/icon/ios7/[email protected]" gap:platform="ios"
width="58" height="58" />
<!-- Spotlight Icon -->
<icon src="res/icon/ios7/icon-40.png" gap:platform="ios" width="40"
height="40" />
<icon src="res/icon/ios7/[email protected]" gap:platform="ios" width="80"
height="80" />
<!-- iOS 5/6 -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/icon.png" gap:platform="ios" width="57"
height="57" />
<icon src="res/icon/ios/[email protected]" gap:platform="ios" width="114"
height="114" />
<!-- iPad -->
<icon src="res/icon/ios/icon-72.png" gap:platform="ios" width="72"
height="72" />
<icon src="res/icon/ios/[email protected]" gap:platform="ios" width="144"
height="144" />
<!-- iPhone Spotlight and Settings Icon -->
<!-- <icon src="res/icon/ios/icon-small.png" gap:platform="ios" width="29"
height="29" />
<icon src="res/icon/ios/[email protected]" gap:platform="ios"
width="58" height="58" />-->
<!-- iPad Spotlight and Settings Icon -->
<icon src="res/icon/ios/icon-50.png" gap:platform="ios" width="50"
height="50" />
<icon src="res/icon/ios/[email protected]" gap:platform="ios" width="100"
height="100" />
<!-- Windows -->
<icon src="res/icon/windows-phone/icon-48.png" gap:platform="winphone"
/>
<icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone"
gap:role="background" />
<!-- Define app splash screen for each platform. -->
<!-- Android -->
<gap:splash src="res/screen/android/screen-ldpi-portrait.png"
gap:platform="android" gap:qualifier="ldpi" width="200" height="320"/>
<gap:splash src="res/screen/android/screen-mdpi-portrait.png"
gap:platform="android" gap:qualifier="mdpi" width="320" height="480"/>
<gap:splash src="res/screen/android/screen-hdpi-portrait.png"
gap:platform="android" gap:qualifier="hdpi" width="480" height="800"/>
<gap:splash src="res/screen/android/screen-xhdpi-portrait.png"
gap:platform="android" gap:qualifier="xhdpi" width="720" height="1280"/>
<gap:splash src="res/screen/android/screen-xxhdpi-portrait.png"
gap:platform="android" gap:qualifier="xxhdpi" width="1080" height="1920"/>
<gap:splash src="res/screen/android/screen-ldpi-landscape.png"
gap:platform="android" gap:qualifier="land-ldpi" width="320" height="200"/>
<gap:splash src="res/screen/android/screen-mdpi-landscape.png"
gap:platform="android" gap:qualifier="land-mdpi" width="480" height="320"/>
<gap:splash src="res/screen/android/screen-hdpi-landscape.png"
gap:platform="android" gap:qualifier="land-hdpi" width="800" height="480"/>
<gap:splash src="res/screen/android/screen-xhdpi-landscape.png"
gap:platform="android" gap:qualifier="land-xhdpi" width="1280" height="720"/>
<gap:splash src="res/screen/android/screen-xxhdpi-landscape.png"
gap:platform="android" gap:qualifier="land-xxhdpi" width="1920"
height="1080"/>
<!-- iPhone and iPod touch -->
<gap:splash src="res/screen/ios/Default.png" gap:platform="ios"
width="320" height="480" />
<gap:splash src="res/screen/ios/[email protected]" gap:platform="ios"
width="640" height="960" />
<!-- iPhone 5 / iPod Touch (5th Generation) -->
<gap:splash src="res/screen/ios/[email protected]" gap:platform="ios"
width="640" height="1136" />
<!-- iPad -->
<gap:splash src="res/screen/ios/Default-Portrait.png"
gap:platform="ios" width="768" height="1024" />
<gap:splash src="res/screen/ios/Default-Landscape.png"
gap:platform="ios" width="1024" height="768" />
<!-- Retina iPad -->
<gap:splash src="res/screen/ios/[email protected]"
gap:platform="ios" width="1536" height="2048" />
<gap:splash src="res/screen/ios/[email protected]"
gap:platform="ios" width="2048" height="1536" />
<!-- Windows -->
<gap:splash src="res/screen/windows-phone/screen-portrait.jpg"
gap:platform="winphone" />
<!--
Define access to external domains.
<access /> - a blank access tag denies access to all
external resources.
<access origin="*" /> - a wildcard access tag allows access to all
external resource.
Otherwise, you can specify specific domains:
-->
<!-- Navigation -->
<!-- <allow-navigation href="*://*.google.com/*" />
<allow-navigation href="cdvfile://*" />
<allow-navigation href="file:///*" />
<allow-navigation href="data:*" />-->
<allow-navigation href="*" />
<!-- Intent -->
<allow-intent href="geo:*" />
<allow-intent href="tel:*" />
<!-- Origin -->
<access origin="*"/> <!-- allow local pages -->
<!--<access origin="cdvfile:*" launch-external="yes" />-->
<!-- Status bar settings -->
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true" />
</feature>
<gap:config-file platform="ios" parent="UIStatusBarHidden">
<true/>
</gap:config-file>
<gap:config-file platform="ios"
parent="UIViewControllerBasedStatusBarAppearance">
<false/>
</gap:config-file>
<gap:config-file platform="ios" parent="UIFileSharingEnabled">
<true/>
</gap:config-file>
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="AndroidExtraFilesystems"
value="files,files-external,documents,sdcard,cache,cache-external,root" />
</widget>
> Persistent path different from 3.7.0 to 4.0.2 (Phonegap 5.1.1)
> --------------------------------------------------------------
>
> Key: CB-9220
> URL: https://issues.apache.org/jira/browse/CB-9220
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin File
> Affects Versions: 4.1.0
> Environment: HTC One M7 / Android 5.0.2
> Reporter: Matthew Horn
> Assignee: Joe Bowser
>
> Config.xml
> <preference name="android-installLocation" value="internalOnly" />
> <preference name="AndroidPersistentFileLocation" value="Internal" />
> <preference name="iosPersistentFileLocation" value="Library" />
> window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
> function(fileSystem){});
> Version 3.7.0
> FS: fileSystem.root.toURL():
> file:///data/data/com.myapp.app.myapp/files/files/
> FS: fileSystem.root.toInternalURL(): cdvfile://localhost/persistent/
> FS: fileSystem.root.nativeURL:
> file:///data/data/com.myapp.app.myapp/files/files/
> Version 5.1.1
> FS: fileSystem.root.toURL(): file:///storage/emulated/0/
> FS: fileSystem.root.toInternalURL(): cdvfile://localhost/persistent/
> FS: fileSystem.root.nativeURL: file:///storage/emulated/0/
> window.resolveLocalFileSystemURL('cdvfile://localhost/persistent/',
> function(oEntry){})
> Version 3.7.0
> nativeURL: "file:///data/data/com.myapp.app.myapp/files/files/"
> Version 5.1.1
> nativeURL: "file:///storage/emulated/0/"
> This is currently breaking links to existing data, any ideas?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]