Skip to content

Commit

Permalink
fix: platform
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Apr 7, 2022
1 parent 8ac9df8 commit 7873709
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ public void onErrorResponse(VolleyError error) {
}) {
@Override
public Map<String, String> getHeaders() throws AuthFailureError {
Map<String, String> params = new HashMap<String, String>();
Map<String, String> params = new HashMap<String, String>();
params.put("cap_platform", "android");
params.put("cap_device_id", this.deviceID);
params.put("cap_app_id", this.appId);
params.put("cap_version_build", this.versionBuild);
Expand Down
1 change: 1 addition & 0 deletions ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ extension Bundle {
let semaphore = DispatchSemaphore(value: 0)
let latest = AppVersion()
let headers: HTTPHeaders = [
"cap_platform": "ios",
"cap_device_id": self.deviceID,
"cap_app_id": self.appId,
"cap_version_build": self.versionBuild,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-updater",
"version": "3.0.0-beta.3",
"version": "3.0.0-beta.4",
"license": "AGPL-3.0-only",
"description": "OTA update for capacitor apps",
"main": "dist/plugin.cjs.js",
Expand Down

0 comments on commit 7873709

Please sign in to comment.