Jan Piotrowski (Sujan) commented on CB-13203:

Hey [~hoffmanjon], is this issue still relevant for you? Did I assume correctly 
that you were testing this with `cordova-windows` version 5.0.0?

> Windows UWP shared Local Folder being removed on app update
> -----------------------------------------------------------
>                 Key: CB-13203
>                 URL: https://issues.apache.org/jira/browse/CB-13203
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-windows
>    Affects Versions: 5.0.0
>         Environment: When running on the Windows 10 platform
>            Reporter: Jon Hoffman
>            Assignee: Jesse MacFadyen
>            Priority: Critical
>              Labels: cordova-7.0.1, data-corruption, data-integrity, 
> data-loss, windows-universal
> 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 page: 
> https://blogs.windows.com/buildingapps/2016/05/24/sharing-your-local-app-data 
> This method works great and we are able to write information to the shared 
> local folder however when the application updates, all of the files in the 
> shared local folder are removed. 
> I tested this by updating the Cordova-Sqlite-Storage plugin to use the shared 
> local folder and also with a proof of concept app 
> (https://github.com/hoffmanjon/Cordova_Windows_UWP_Shared_Local_Folder3 , 
> https://github.com/hoffmanjon/Cordova_Windows_UWP_Shared_Local_Folder_plugin).
> I did create 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 the 
> hybrid application.
> I put my 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: 
> https://github.com/hoffmanjon/Cordova_Windows_UWP_Shared_Local_Folder and 
> includes a windows plugin to write to the shared local folder. 
> You will need to set a group policy to get the shared local folders working. 
> In the "Using Shared Local" section of this page: 
> https://blogs.windows.com/buildingapps/2016/05/24/sharing-your-local-app-data 
> it describes how to change the policy and which one to change.
> I have updated to Cordova 7.0.1 and built the proof of concept app to see if 
> we have the same issue as describe with version 6.5 
> (https://issues.apache.org/jira/browse/CB-12928).  After updating the 
> application the shared local folder is removed therefore the same issue 
> exists with Cordova 7.0.1.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to