Skip to content

feat(live-update): add channel to FetchLatestBundleResult#799

Open
robingenz wants to merge 2 commits intomainfrom
feat/live-update-channel-in-fetch-result
Open

feat(live-update): add channel to FetchLatestBundleResult#799
robingenz wants to merge 2 commits intomainfrom
feat/live-update-channel-in-fetch-result

Conversation

@robingenz
Copy link
Copy Markdown
Member

@robingenz robingenz commented Mar 15, 2026

Summary

  • Add channel property to FetchLatestBundleResult that returns the actual/resolved channel the bundle is from (after applying any forced channel assignment)
  • Update channel property descriptions in FetchLatestBundleOptions and SyncOptions to clarify they represent the SDK preference and may be overridden by a forced channel assignment
  • Add channelName field to the API response parser (GetLatestBundleResponse) on both Android and iOS

Usage

const result = await LiveUpdate.fetchLatestBundle();
if (result.bundleId) {
  console.log('Bundle available from channel:', result.channel);                                                                              
}

Copilot AI review requested due to automatic review settings March 15, 2026 10:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for returning the resolved/actual bundle channel (after any forced channel assignment) from fetchLatestBundle(), aligning the SDK result with what the backend ultimately served.

Changes:

  • Added optional channel to FetchLatestBundleResult (TypeScript + native iOS/Android result serialization).
  • Extended the iOS/Android latest-bundle API response parsing to read channelName and forward it into the result.
  • Clarified channel option wording in FetchLatestBundleOptions and SyncOptions, and updated README docs accordingly.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/live-update/src/definitions.ts Updates option docs and adds channel to FetchLatestBundleResult.
packages/live-update/ios/Plugin/Protocols/Api/GetLatestBundleResponse.swift Adds channelName to the decoded API response model.
packages/live-update/ios/Plugin/LiveUpdate.swift Maps channelName from the API response into FetchLatestBundleResult.channel.
packages/live-update/ios/Plugin/Classes/Results/FetchLatestBundleResult.swift Serializes channel into the JS result when present.
packages/live-update/android/.../results/FetchLatestBundleResult.java Adds channel field and serializes it into the JS result when present.
packages/live-update/android/.../api/GetLatestBundleResponse.java Parses channelName from the API response and exposes a getter.
packages/live-update/android/.../LiveUpdate.java Forwards channelName into the FetchLatestBundleResult.
packages/live-update/README.md Documents the new channel result property and clarifies option descriptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 15, 2026

Open in StackBlitz

@capawesome/capacitor-age-signals

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-age-signals@799

@capawesome-team/capacitor-android-battery-optimization

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-android-battery-optimization@799

@capawesome/capacitor-android-dark-mode-support

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-android-dark-mode-support@799

@capawesome/capacitor-android-edge-to-edge-support

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-android-edge-to-edge-support@799

@capawesome-team/capacitor-android-foreground-service

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-android-foreground-service@799

@capawesome/capacitor-app-review

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-review@799

@capawesome/capacitor-app-shortcuts

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-shortcuts@799

@capawesome/capacitor-app-update

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-update@799

@capawesome/capacitor-apple-sign-in

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-apple-sign-in@799

@capawesome/capacitor-asset-manager

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-asset-manager@799

@capawesome/capacitor-background-task

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-background-task@799

@capawesome/capacitor-badge

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-badge@799

@capawesome/capacitor-cloudinary

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-cloudinary@799

@capawesome-team/capacitor-datetime-picker

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-datetime-picker@799

@capawesome-team/capacitor-file-opener

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-file-opener@799

@capawesome/capacitor-file-picker

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-file-picker@799

@capawesome/capacitor-google-sign-in

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-google-sign-in@799

@capawesome/capacitor-libsql

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-libsql@799

@capawesome/capacitor-live-update

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-live-update@799

@capawesome/capacitor-managed-configurations

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-managed-configurations@799

@capawesome/capacitor-photo-editor

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-photo-editor@799

@capawesome/capacitor-posthog

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-posthog@799

@capawesome/capacitor-realtimekit

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-realtimekit@799

@capawesome/capacitor-screen-orientation

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-screen-orientation@799

@capawesome/capacitor-screenshot

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-screenshot@799

@capawesome/capacitor-square-mobile-payments

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-square-mobile-payments@799

@capawesome/capacitor-superwall

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-superwall@799

@capawesome/capacitor-torch

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-torch@799

commit: 7061200

@robingenz robingenz self-assigned this Mar 15, 2026
@robingenz robingenz added the feature Feature request label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants