Creator Preview with Android Mock enabled on the toolbar
Android Mock

Appifio Creator · Lesson H03 · Advanced

Android Mock & path to
Capacitor APK export (BETA)

Be clear: previewing an Android frame ≠ a store-ready app. Know when to use Android Mock, when to use Export APK, and what the system cannot do.

Learning goals: Toggle Android Mock correctly; know mock only simulates layout; know the BETA path to Capacitor/Kotlin APK and free-plan limits.

Reading time: 12-15 minutes

Prerequisites: E04 (Export), C01 (View space). Prefer a stable draft.

Main UI labels: Android Mock · Canvas/Standard · Export · Export content · Templates tab

Previous → next: H02 / E04 → H03 → H04

1. Three layers - don’t mix them up

Layer A - View web on mobile
"Mobile" button or Canvas "Mobile" breakpoint (390px) → still HTML web
Layer B - Android Mock (in Creator)
"Android Mock" → simulates Android-style layout (XML/Kotlin view) in the iframe
⚠ When Mock is on: Canvas is often disabled / falls back to Standard
Layer C - Real APK file (BETA)
"Export""Export content" → Export APK · or learn from Capacitor/Kotlin samples in "Templates"

2. Glossary

TermMeaningWhere
Android MockPreview that mocks Android controls (TextView, Button, EditText, Switch, DatePicker…) - not installing an APKView space toolbar (hard-coded DOM label)
CapacitorWrap HTML/CSS/JS in an Android shell → .apk fileTemplates tab · Export APK
Kotlin nativeAndroid app in a native direction (not only WebView)Note Kotlin Native sample
Layout warningsLayout warnings when mock renders (duplicate ids, missing attrs…)Inside the mock frame
Mobile (button)Narrows the web viewport - different from Android MockRight side of preview toolbar

3. Steps - turn on Android Mock

  1. Open the tab dropdown → "View & edit".
  2. Pick the version to check: "Changes" (draft) or "Current" (live).
  3. If "Android Mock" is on the left toolbar (some versions/templates show it when the project has suitable Android/XML structure), click to enable.
  4. Watch: the iframe switches to the mock frame; if you were on "Canvas", the system may fall back to "Standard" preview (Canvas disabled while mock is on).
  5. Read any Layout warnings - ask AI (Debug or UI mode) to fix them.
  6. Turn mock off by clicking "Android Mock" again, then return to "Canvas" if you need web breakpoints.

DOM note: The button label is exactly Android Mock (not translated). Don’t confuse it with Mobile.

4. Path to APK (BETA) - in order

Export Content modal Android APK Capacitor and Kotlin Native BETA
Export APK (BETA)
  1. Finish web UI + (optional) mock checks.
  2. Fill Project profile (app name, logo) - Export uses this for App Name / packaging assets.
  3. (Recommended) Open "Templates" → review Capacitor / Kotlin samples before a real build - warning: applying a template DELETES ALL files, routes, and temp data. Prefer "Create new (Clone)" on the "Versions" tab first.
  4. On the preview toolbar click "Export""Export content" modal.
  5. Choose Export APK (BETA) - don’t confuse with Appifio project (.afi) (source backup, not an installable phone app).
  6. Watch status: Building APK… → download .apk, or Build failed / Heavy task unavailable on free plan.
  7. Install the APK on a real device before client delivery.

5. Compared with other tools

  • Android Studio / Emulator: full device sim + native debug - Appifio Mock is layout preview only.
  • Capacitor CLI / Ionic: standard external build; Appifio wraps part of it in Export (BETA, plan-dependent).
  • Bubble / Glide: also “export app” with plan limits - same rule: don’t promise store-ready while BETA.
  • PWA (Add to Home Screen): often enough for biolink/landing; lighter than APK, no Mock needed.

6. Can / can’t

You can

  • Preview Android-style layout in Creator
  • Try APK export on some projects/samples (BETA)
  • Also export .afi / PDF / images

Limits

  • Mock ≠ Play Store listing, signing keys, full IAP
  • APK builds can fail; free plans may block heavy tasks
  • Canvas + Android Mock don’t run together
  • Doesn’t replace testing on a real device

7. Security

  • Packaged APKs may include API keys / endpoints - don’t hardcode secrets in HTML; use Secrets manager (Backend tab, F04).
  • Appifio project (.afi) contains source - share only with authorized people.
  • Don’t distribute debug APKs publicly if they hold admin/session tokens.

8. Common issues

SituationFix
No Android Mock buttonMay be hidden when the project isn’t in a mock context - use Mobile/Canvas first; or apply an Android sample (after Clone)
Canvas disappears when Mock is onBy design - turn Mock off, then enable Canvas again
“Build failed” / “Heavy task unavailable on free plan”Simplify the app; upgrade plan; or ship PWA/web instead of APK
Long layout warningsPaste into AI chat in Debug mode; Checkpoint before large fixes

9. Tips

  • Finish a solid responsive web experience (Canvas · Mobile) before touching APK.
  • Use Mock for Android-style forms / native prototypes - not to “test real-device speed.”
  • Always Clone a version before applying a Capacitor template.
  • Tell clients clearly: “APK BETA - sideload install; not store-guaranteed.”

10. Self-check

  1. Can you tell Mobile vs Android Mock vs Export APK apart?
  2. Do you know Canvas turns off when Mock is on?
  3. Do you avoid promising Play Store based on Mock alone?

Next lesson

H04 - AI Diff, History, DOM Search

Work professionally: accept/reject AI changes, review history, find elements with Ctrl+Shift+F.

Appifio Creator · User guide · H03