Skip to content

Commit

Permalink
fix: issue updateAvailable ios wrong package returned
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jul 14, 2023
1 parent 1a383bf commit 4dab086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
}
if latest!.isDownloaded() {
print("\(self.implementation.TAG) Latest version already exists and download is NOT required. Update will occur next time app moves to background.")
self.notifyListeners("updateAvailable", data: ["bundle": current.toJSON()])
self.notifyListeners("updateAvailable", data: ["bundle": latest.toJSON()])
_ = self.implementation.setNextBundle(next: latest!.getId())
self.endBackGroundTask()
return
Expand Down

0 comments on commit 4dab086

Please sign in to comment.