phonegap / phonegap-plugin-contentsync

Download and cache remotely hosted content
Apache License 2.0
206 stars 98 forks source link

#186 - [iOS] copyRootApp runs a second time on the second launch of the application, overwriting updates #187

Closed blefebvre closed 6 years ago

blefebvre commented 6 years ago

Description

This change is a proposed fix to the issue described in detail in #186. In this fix, when a previousVersion is nil and the currentVersion is set, the plugin will overwrite the appHasBeenUpdated bool to false so that the copyRootApp operation is not run again.

Related Issue

186

Motivation and Context

A customer has reported this issue.

How Has This Been Tested?

I have tested this issue manually on iOS 11.1, 10.3, and 10.2.

Screenshots (if appropriate):

n/a

Types of changes

Checklist: