File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
======
3
3
4
+ ## 5.1.6
5
+
6
+ * Fixed a bug with none update method strategy that could cause background updates upon resume of the app from background
7
+
4
8
## 5.0.6
5
9
6
10
* Fixed a bug with version rebulds that could make some initial redirects take up to 15 seconds.
Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ class IonicDeployImpl {
356
356
const prefs = this . _savedPreferences ;
357
357
// Is the current version built from a previous binary?
358
358
if ( prefs . currentVersionId ) {
359
- if ( ! this . isCurrentVersion ( prefs . updates [ prefs . currentVersionId ] ) ) {
359
+ if ( ! this . isCurrentVersion ( prefs . updates [ prefs . currentVersionId ] ) && ! this . _isRunningVersion ( prefs . currentVersionId ) ) {
360
360
console . log (
361
361
`Update ${ prefs . currentVersionId } was built for different binary version removing update from device` +
362
362
`Update binaryVersionName: ${ prefs . updates [ prefs . currentVersionId ] . binaryVersionName } , Device binaryVersionName ${ prefs . binaryVersionName } ` +
@@ -696,8 +696,7 @@ class IonicDeploy implements IDeployPluginAPI {
696
696
697
697
async onResume ( ) {
698
698
if ( this . fetchIsAvailable && this . lastPause && this . minBackgroundDuration && Date . now ( ) - this . lastPause > this . minBackgroundDuration * 1000 ) {
699
- await ( await this . delegate ) . sync ( ) ;
700
- await this . reloadApp ( ) ;
699
+ await ( await this . delegate ) . _handleInitialPreferenceState ( ) ;
701
700
}
702
701
}
703
702
You can’t perform that action at this time.
0 commit comments