Day 7: The Step Every App Needs Before Launch
Watch an AI agent copy a whole Flutter backend into a new AppAmbit app for production, switch builds with one click, and wire Android push notifications that you send from the dashboard and that open the right screen.
Watch the full tutorial or read the summary below
Overview
Day 7 of the Unshrimp build: an app that nags you to fix your posture, built prompt by prompt on AppAmbit.
Until today there was one app and one database, so test accounts and real users shared the same tables. Break something while testing and a real user feels it. Now the app has two copies: the one we had becomes the test copy, and a new, empty one is production. In AppAmbit, a second backend is just a second app, with the same tables, the same Cloud Code functions, the same settings and content, and different users. The agent creates it from the terminal in one go.
Then, Push Notifications. Reminders come from the phone, but some messages have to come from you, like "your weekly report is ready". You send them from the AppAmbit dashboard with a title, a message and an audience. The agent only wires up the app side.
After seven episodes, Unshrimp is a real product, and it's yours to copy.
In This Episode
- The problem: one app and one database shared by test accounts and real users
- A test build, a production build, and the whole backend copied to a new AppAmbit app
- The production copy: a fresh database with every table, function, setting and content, and zero users
- The proof: a sign-up from the production build lands in production, not in test
- Switching is one click in the editor, and the test build wears a badge so nobody mixes them up
- AppAmbit push on Android, a tap that opens the right screen, and the push showing while the app is open
- One small Cloud Code function keeps every push in the in-app notification center
- Sending from the dashboard: title, body and one key, open: report
- Phone locked, the push arrives, and a tap goes straight to the weekly report
- With the app open, the push still shows, with no extra work
Chapters
- 0:00 One app, two copies and a push
- 0:18 New here? What Unshrimp is
- 0:35 Today's two parts
- 0:45 The problem: one database for everything
- 1:03 Setting up test and production
- 1:20 What the agent built
- 1:29 A sign-up lands in production only
- 1:37 Switching between test and production
- 1:47 Push: messages that come from you
- 2:09 What the agent did
- 2:16 Sending a push from the dashboard
- 2:24 Tap it: straight to the weekly report
- 2:30 A push with the app open
- 2:41 Unshrimp after seven episodes
- 3:01 Make it yours
More in the Series
- Previous: Day 6: I Made My App Paid in 2 Prompts
- Next: Day 8: How Unshrimp Added In-App Purchases Without Building a Backend From Scratch
Links
Frequently Asked Questions
Q Why does an app need a test copy and a production copy?
With one backend, test accounts and real users share the same tables, so a mistake while testing reaches real users. Two copies keep them apart: you break things in test, and production stays safe.
Q How do you create a second backend in AppAmbit?
A second backend is a second AppAmbit app. The agent copied the tables, the Cloud Code functions, the settings and the content into it from the terminal, leaving the users behind. There is nothing to set up by hand.
Q How do I switch between test and production?
With one click in the editor. It is the same code pointing at a different backend, and the test build shows a badge so you always know which one you are using.
Q Do I need to write code to send a push notification?
No. You fill in a form in the AppAmbit dashboard with the title, the message and the audience. The agent only wired up the app side, so the phone receives the push and opens the right screen.
Q How does a push open a specific screen?
The push carries a key, here open: report. When you tap it, the app reads the key and goes straight to the weekly report in History.
Ready to get started with AppAmbit?
Monitor your mobile apps with real-time crash reporting, analytics, and app distribution.
Start Free Trial