cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Hoffman (JIRA)" <>
Subject [jira] [Commented] (CB-12928) Windows UWP shared Local Folder being removed
Date Fri, 16 Jun 2017 16:35:00 GMT


Jon Hoffman commented on CB-12928:

Interesting, if I take the anchor out a different one is added each time.  Might be user specific.
 I edited to take the anchor out of the link.

> Windows UWP shared Local Folder being removed
> ---------------------------------------------
>                 Key: CB-12928
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-windows
>    Affects Versions: 6.5.0
>         Environment: When running on a Windows 10 platform
>            Reporter: Jon Hoffman
>            Assignee: Jesse MacFadyen
>            Priority: Critical
>              Labels: windows
> We are writing an application using Ionic 2 for Windows 10. The application will need
to share data between different users on the same machine therefore we are using the shared
local folder to save the data to as described in the “Using Shared Local” section of this
> This method works great and we made changes to the Cordova-Sqlite-Storage plugin so it
will write the database file to the shared local folder. The problem is when we update our
application the shared local folder is removed thereby erasing all of the saved data.
> I created a native C# application to see if we had the same behavior when we updated
a native application. When we updated the native app the shared local folder was not removed
therefore this is an issue specific to our hybrid application.
> My first thought was maybe the Add-AppDevPackage.ps1 scripts were different between the
native and Ionic 2 application since that is the script that we used to perform the installation
and update. I ran a comparison tool to compare the scripts from the Ionic2 and native applications
however the two files are exactly the same.
> I can also verify that the user local folder for the application is not removed when
we perform an update however that folder is specific to the individual user and we can not
share data from that folder. Does anyone know why the shared local folder is removed when
we perform an update of an Ionic 2 application?
> I put a proof of concept application that simply writes a text file to the shared local
folder and the application local folder that can be used to see how the shared local folder
is removed when we update the app.  The repository is located here:
 and includes a windows plugin to write to the shared local folder.  You will need to set
the groups policy as described in the link from the first paragraph of this description to
get access to the shared local folder.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message