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

[Feature request] Allow configurable timeout for restartAfterInstall in OTA updates #67

Closed
BangDori opened this issue Mar 13, 2025 · 3 comments
Assignees

Comments

@BangDori
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Currently, the restartAfterInstall option in OTA updates has a hardcoded timeout of 300ms before restarting the app. - Link

This makes it feel like the app restarts immediately after the update is applied, preventing a smooth transition. (Maybe it's just me who feels this way 😓)

Describe the solution you'd like

It would be helpful to allow developers to configure the timeout delay before the restart.

Describe alternatives you've considered

One approach could be to keep the default 300ms timeout but allow developers to override it, like:

setTimeout(() => {
  // ...
}, option.restartDelay ?? 300);

Additional context

@vantuan88291
Copy link
Owner

it great if you can help to create a PR

@BangDori
Copy link
Contributor Author

Sure, I'll create a PR soon. Thank you!

@vantuan88291
Copy link
Owner

released with 2.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants