feat(live-update)!: notify if last update was successful #241
Closed
Description
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
- I have read and followed the feature request guidelines.
- I have attached links to possibly related issues and discussions.