Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(live-update)!: notify if last update was successful #241

Open
3 of 20 tasks
robingenz opened this issue Aug 1, 2024 · 0 comments · May be fixed by #242
Open
3 of 20 tasks

feat(live-update)!: notify if last update was successful #241

robingenz opened this issue Aug 1, 2024 · 0 comments · May be fixed by #242
Labels
Milestone

Comments

@robingenz
Copy link
Member

Plugin(s)

  • Android Foreground Service
  • Android Battery Optimization
  • App Update
  • Background Task
  • Badge
  • Bluetooth Low Energy
  • Cloudinary
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Live Update
  • Managed Configurations
  • NFC
  • Photo Editor
  • Printer
  • Screen Orientation
  • Zip

Current problem

Currently, the plugin does not provide any information after the app starts or a reload, whether the update installation was successful or if a rollback had to be performed.

Preferred solution

The plugin should provide information about the success of an update after installation.

Example:

export interface ReadyResult {
  /**
   * The identifier of the previous bundle used.
   * 
   * If `null`, the default bundle was used.
   */
  previousBundleId: string | null;
  /**
   * The identifier of the current bundle used.
   * 
   * If `null`, the default bundle is being used.
   */
  currentBundleId: string | null;
  /**
   * Whether or not the app was reset to the default bundle.
   */
  rollback: boolean;
}

Alternative options

As a workaround, a flag (e.g., in the Local Storage) can be saved after a sync has been performed. If this flag exists after an app start or a reload, then an update has been installed and the flag can be deleted.

Additional context

No response

Before submitting

@robingenz robingenz linked a pull request Aug 1, 2024 that will close this issue
3 tasks
@robingenz robingenz added this to the v7.0.0 milestone Aug 3, 2024
@robingenz robingenz changed the title feat(live-update): notify if last update was successful feat(live-update)!: notify if last update was successful Aug 17, 2024
@robingenz robingenz added the breaking change Breaking change label Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant