We’ve opened the OTADart beta for Flutter on iPhone and Android. If you have a test app handy, we’d love for you to try one patch and tell us what happened.
OTADart lets you ship a Dart fix and updated images or fonts in one signed patch. The app downloads it in the background and applies it the next time it opens. You can start on a test track and roll back if something goes wrong.
We tried this with a small change we could see. We added an image through a patch, reopened the app, and saw it on both iPhone and Android. On iPhone, unchanged Dart code continues to run natively, while Dart code changed by the patch runs through an interpreter. Changes to native code still go through a regular store release. What we’ve tested
Try one patch:
- Follow the quick start to make a release of a Flutter test app.
- Change one visible string or image and publish a patch to a test track.
- Once the patch is ready, close and reopen the app. Did the change show up?
If you try it, tell us your Flutter version, which platform you used, and anything that slowed you down. A report about where you got stuck is just as helpful as a successful test.
The hosted service is free and unlimited, and you can also self-host on Linux with a free license. Signed patches are in beta for iPhone and Android. Support for other Flutter platforms is in development.
Top comments (2)
This is the part of OTA updates that always makes me pause: the rollback story. You mention starting on a test track and rolling back if something goes wrong — but if a patch applies cleanly and then breaks at runtime on a specific device, does the app detect that and fall back to the last good version on its own, or does that need a human to push another patch?
I ship native Android, so I have not had to think about the interpreter path you describe for patched Dart code on iPhone — but the failure mode is the same question in any stack: what happens when the patch itself is the bug? How are you handling that case in the beta, and is there a safe state the app can always return to?
That's a great question.
OTADart has a 2 stage rollback feature. Should an update fail before a devices’ 10 second (default) health check then the SDK will auto-rollback to either the last good update or base store build, even whilst offline.
Runtime issues can also be rolled back from a remote location. Following a device’s next update check it recognises that a rollback has taken place and automatically reverts to the previously functioning version on the next boot. This way a new update is not always needed to restore functionality.