@capgo/capacitor-updater 5.3.31 → 5.3.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,6 +108,31 @@ You might also consider performing auto-update when application state changes, a
108
108
 
109
109
  TIP: If you prefer a secure and automated way to update your app, you can use [capgo.app](https://capgo.app) - a full-featured, auto update system.
110
110
 
111
+ ### Store Guideline Compliance
112
+
113
+ Android Google Play and iOS App Store have corresponding guidelines that have rules you should be aware of before integrating the Capacitor-updater solution within your application.
114
+
115
+ #### Google play
116
+
117
+ Third paragraph of [Device and Network Abuse](https://support.google.com/googleplay/android-developer/answer/9888379?hl=en) topic describe that updating source code by any method other than Google Play's update mechanism is restricted. But this restriction does not apply to updating javascript bundles.
118
+ > This restriction does not apply to code that runs in a virtual machine and has limited access to Android APIs (such as JavaScript in a webview or browser).
119
+
120
+ That fully allow Capacitor-updater as it updates just JS bundles and can't update native code part.
121
+
122
+ #### App Store
123
+
124
+ Paragraph **3.3.2**, since back in 2015's [Apple Developer Program License Agreement](https://developer.apple.com/programs/ios/information/) fully allowed performing over-the-air updates of JavaScript and assets - and in its latest version (20170605) [downloadable here](https://developer.apple.com/terms/) this ruling is even broader:
125
+
126
+ > Interpreted code may be downloaded to an Application but only so long as such code: (a) does not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store, (b) does not create a store or storefront for other code or applications, and (c) does not bypass signing, sandbox, or other security features of the OS.
127
+
128
+ Capacitor-updater allows you to follow these rules in full compliance so long as the update you push does not significantly deviate your product from its original App Store approved intent.
129
+
130
+ To further remain in compliance with Apple's guidelines we suggest that App Store-distributed apps don't enable the `Force update` scenario, since in the [App Store Review Guidelines](https://developer.apple.com/app-store/review/guidelines/) it is written that:
131
+
132
+ > Apps must not force users to rate the app, review the app, download other apps, or other similar actions in order to access functionality, content, or use of the app.
133
+
134
+ This is not a problem for the default behavior of background update, since it won't force the user to apply the new version until next app close, but at least you should be aware of that ruling if you decide to show it.
135
+
111
136
  ### Packaging `dist.zip` update bundles
112
137
 
113
138
  Capacitor Updator works by unzipping a compiled app bundle to the native device filesystem. Whatever you choose to name the file you upload/download from your release/update server URL (via either manual or automatic updating), this `.zip` bundle must meet the following requirements:
@@ -55,7 +55,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
55
55
  private static final String channelUrlDefault =
56
56
  "https://api.capgo.app/channel_self";
57
57
 
58
- private final String PLUGIN_VERSION = "5.3.31";
58
+ private final String PLUGIN_VERSION = "5.3.33";
59
59
  private static final String DELAY_CONDITION_PREFERENCES = "";
60
60
 
61
61
  private SharedPreferences.Editor editor;
@@ -1382,7 +1382,7 @@ public class CapacitorUpdaterPlugin extends Plugin {
1382
1382
  "app_moved_to_foreground",
1383
1383
  current.getVersionName()
1384
1384
  );
1385
- this._checkCancelDelay(true);
1385
+ this._checkCancelDelay(false);
1386
1386
  if (
1387
1387
  CapacitorUpdaterPlugin.this._isAutoUpdateEnabled() &&
1388
1388
  this.backgroundDownloadTask == null
@@ -15,7 +15,7 @@ import Version
15
15
  @objc(CapacitorUpdaterPlugin)
16
16
  public class CapacitorUpdaterPlugin: CAPPlugin {
17
17
  public var implementation = CapacitorUpdater()
18
- private let PLUGIN_VERSION: String = "5.3.31"
18
+ private let PLUGIN_VERSION: String = "5.3.33"
19
19
  static let updateUrlDefault = "https://api.capgo.app/updates"
20
20
  static let statsUrlDefault = "https://api.capgo.app/stats"
21
21
  static let channelUrlDefault = "https://api.capgo.app/channel_self"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "5.3.31",
3
+ "version": "5.3.33",
4
4
  "packageManager": "pnpm@8.10.5",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",