165537 created CB-7427:
--------------------------
Summary: Cannot change location to local file eg
cdvfile://path/index.html
Key: CB-7427
URL: https://issues.apache.org/jira/browse/CB-7427
Project: Apache Cordova
Issue Type: Bug
Affects Versions: 3.5.0
Environment: Android 4.1.2, 4.4.2, Phonegap 3.5.0 (Cordova 3.5.1)
Reporter: 165537
My app copies files on the device using the FileAPI. This works well in 3.4.0
and 3.5.0.
Then it opens an html file by doing window.location =
"cdvfile://localhost/persistent/TEST/index.html";
Note that the path is not hard coded but uses something like myDirEntry.toURL().
This works well in 3.4.0 (tested on several versions of Android and iOS), but
it does not work in 3.5.0 (tested only on Android 4.1.2 and 4.4.2 - FYI the
computed path is the same in 3.4.0 and 3.5.0).
When trying to load the file, nothing happens. The app stays in the current
page, no exception seems to be thrown.
In both cases I use the org.apache.cordova.file plugin version 1.0.1 (the one
available on Phonegap Build).
Has something changed in Phonegap 3.5.0?
--
This message was sent by Atlassian JIRA
(v6.2#6252)