Skip to content

Commit

Permalink
fix: add logs in Auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Aug 15, 2022
1 parent 7667ea9 commit 196d7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public void getLatest(final String updateUrl, final Callback callback) {
json.put("version_name", version);
json.put("plugin_version", pluginVersion);

Log.e(CapacitorUpdater.TAG, "Auto-update parameters: " + json.toString());
// Building a request
JsonObjectRequest request = new JsonObjectRequest(
Request.Method.POST,
Expand Down
1 change: 1 addition & 0 deletions ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ extension CustomError: LocalizedError {
"plugin_version": self.pluginVersion,
"version_name": self.getCurrentBundle().getVersionName()
]
print("\(self.TAG) Auto-update parameters: \(parameters)")
let request = AF.request(url, method: .post,parameters: parameters, encoder: JSONParameterEncoder.default)

request.validate().responseDecodable(of: AppVersionDec.self) { response in
Expand Down

0 comments on commit 196d7be

Please sign in to comment.