Templat aplikasi Kebugaran Plus
Aplikasi latihan harian dengan langganan Google Play bulanan atau tahunan, keterangan uji coba gratis, dan tautan Kelola.
Ini template yang berjalan langsung. Fitur ponsel seperti kamera, getar, dan notifikasi berfungsi di aplikasi yang Anda buat.
Fitur ponsel yang digunakan templat ini
Fitur ini berasal dari bridge JavaScript FreeApp yang disertakan di setiap aplikasi yang dibuat dengan Free HTML to APK. Di browser biasa, templat tetap berjalan, dan panggilan tersebut tidak melakukan apa-apa.
Toast bawaan singkat.
Getaran sekali (default 50 ms) atau pola [mati, hidup, mati, hidupβ¦].
Cara templat memanggilnya
const [p] = await FreeApp.billing.products(['premium']);
const monthly = p.offers.find(o => o.basePlan === 'monthly');
FreeApp.billing.buy('premium', { offer: 'monthly' });
if (FreeApp.billing.isOwned('premium')) FreeApp.billing.manageSubscriptions('premium');
Sesuaikan dengan AI
Salin prompt ini ke ChatGPT, Gemini, atau Claude, ganti idenya dengan ide Anda, lalu tempel jawabannya kembali ke editor. Prompt ini sudah menjelaskan shell aplikasi dan fitur ponsel kepada AI.
Tampilkan prompt AI
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.
The app: Fitness Plus β a workout-of-the-day app with timed workouts, free basic workouts and premium workouts unlocked by the subscription premium with base plans monthly and yearly; the paywall shows each plan's price and period in plain words and a free-trial line. Workout-of-the-day app with a monthly or yearly Google Play subscription, free trial line and Manage link.
Requirements:
- Mobile-first, touch-friendly UI (min 44px tap targets), works in portrait, supports light and dark mode.
- Use <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> and pad for env(safe-area-inset-*).
- You may load libraries from a CDN (jsDelivr/unpkg); show a friendly message if the device is offline.
The page runs inside an Android app that injects a native bridge as window.FreeApp. Available APIs:
- FreeApp.billing.{available, products(ids: string[]): Promise<[{id, title, description, type: 'inapp'|'subs', price /* formatted, local currency */, priceMicros, currency, period?, offers?: [{basePlan, offer, tags, phases: [{price, priceMicros, currency, period, cycles}]}], owned, consumable}]>, buy(id, {offer?}): Promise<{id, products, token, orderId, quantity, autoRenewing, alreadyOwned?}> (rejects with err.code: 'cancelled' | 'pending' | 'network' | 'busy' | 'unavailable' | 'developer_error' | 'not_found' | 'already_owned' | 'error'), restore(): Promise<{purchases, owned}>, consume(idOrToken), owned(): string[], isOwned(id): boolean, isAdFree(): boolean, manageSubscriptions(id?), on(cb: (e: {event: 'purchase'|'pending'|'owned'|'failed'|'unavailable', β¦}) => void)} β Google Play Billing; only present when Purchases is on in the builder. Unlock non-consumables from isOwned()/owned() at startup plus the 'owned' and 'purchase' events (not only in the click handler); grant consumables only in the 'purchase' event, deduplicated by e.token saved in localStorage; use buy()'s promise only for UI; show prices from products(), never hard-coded; say "Payment pending" on 'pending', stay silent on 'cancelled'; always offer a Restore purchases button and, for subscriptions, a Manage subscription link (manageSubscriptions); in a normal browser simulate purchases with a demo store
- FreeApp.toast(message: string): void β short native toast
- FreeApp.vibrate(ms?: number | number[]): void β one-shot buzz (default 50 ms) or an [off, on, off, onβ¦] pattern
Rules for the bridge:
- Always guard calls with `window.FreeApp &&` (or `if (window.FreeApp) { β¦ }`) and provide a browser fallback so the page also works in a normal browser.
- The bridge may be injected after your script runs: do native setup inside `window.addEventListener('freeappready', β¦)` and also run it immediately if window.FreeApp already exists.
- Do not use alert/confirm for normal feedback; prefer FreeApp.toast when available.
Return the complete index.html in one code block.
My idea: [DESCRIBE YOUR APP IDEA HERE]Jadikan aplikasi Android
- Ketuk Edit dan buat online. Templat akan terbuka di editor online.
- Ubah teks, warna, dan kodenya, lalu pilih nama aplikasi, ikon, dan nama paket.
- Buat build. Anda mendapatkan APK yang ditandatangani untuk dipasang dan AAB untuk Google Play, gratis, tanpa akun dan tanpa watermark.
Templat Hasilkan Uang lainnya
Malam Trivia
Ronde kuis dengan petunjuk 50/50 lewat iklan berhadiah, iklan interstisial setiap ronde ke-3, dan banner hanya di halaman hasil.
Kutipan Harian
Kartu kutipan dengan favorit; iklan setiap 8 kutipan saat menekan Berikutnya, dan iklan berhadiah membuka paket bonus selama 24 jam.
Pengeklik Koin
Game ketuk idle dengan upgrade, boost 2Γ selama 60 detik lewat iklan berhadiah, iklan naik level setiap level ke-3, dan banner di toko.
Pembaca Cerita
Cerita lima bab; bab berikutnya gratis setelah 10 menit atau langsung terbuka dengan iklan berhadiah.
Pelompat Ketuk
Game lari tanpa akhir di Canvas dengan Lanjutkan lewat iklan berhadiah sekali per permainan, iklan setiap game over ke-3, dan banner di layar game over.
Catatan Pro
Aplikasi catatan dengan buka kunci Pro sekali bayar: tema, sematkan catatan, ekspor .txt, dan catatan tanpa batas lewat Google Play.