Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13203

Windows UWP shared Local Folder being removed on app update

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            purplecabbage Jesse MacFadyen
            hoffmanjon Jon Hoffman
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment