FIRST APP GUIDE
Deploy Live Updates
Now for the exciting part - let's push our new FAQ feature directly to users without going through the app stores! We'll use Shorebird's code push functionality to make this happen.
Understanding Code Push
Code push lets you update your app's Dart code without submitting a new build to the app stores. Think of it like a web app update - users get the new features next time they open the app.
Shorebird Integration
If you followed along with the quickstart, your app already has Shorebird built in! When you created your project with codika create
, we:
- Added Shorebird configuration
- Set up the update checking logic
- Created Codemagic workflows for patch builds
Creating Your First Patch
Remember the FAQ feature we just added? Let's try out Shorebird by pushing it to your test app! First, make sure you've:
- Successfully built and deployed your test app to TestFlight
- Installed it on your device like described in section Set Up App Distribution
- Added and tested the FAQ block in your local development environment like described in section Add FAQ
Then, create your patch:
codika build --prod-patch
What's Happening Behind the Scenes
When you run this command:
- Your code is pushed to a
prod-patch
branch - Codemagic detects this special branch
- It triggers the patch workflow in
codemagic.yaml
- Shorebird builds and signs your patch
- The patch is uploaded to Shorebird's servers
What's Next?
Congratulations! You've just:
- Learned about code push updates
- Created your first Shorebird patch
- Deployed a feature without app store involvement
In the next section, we'll customize your app's look and feel to match your brand. We'll explore themes, assets, and configuration options to make the app truly yours.