Word Puzzle app template
Unscramble-the-word game with banner and interstitial ads, plus a one-time Remove ads purchase.
This is the template running live. Phone features such as the camera, vibration and notifications work in the app you build.
Phone features this template uses
These come from the FreeApp JavaScript bridge that every app built with Free HTML to APK includes. In a normal browser the template still runs, and the calls simply do nothing.
Short native toast.
One-shot buzz (default 50 ms) or an [off, on, off, onβ¦] pattern.
How the template calls them
let adFree = FreeApp.billing.isAdFree();
if (!adFree) FreeApp.ads.showBanner('bottom');
FreeApp.billing.on(e => { if (e.event === 'owned' && FreeApp.billing.isAdFree()) FreeApp.ads.hideBanner(); });
Make it yours with AI
Copy this prompt into ChatGPT, Gemini or Claude, change the idea to yours, and paste the answer back into the editor. It already explains the app shell and the phone features to the AI.
Show the AI prompt
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.
The app: Word Puzzle β an unscramble-the-word game with a banner and an interstitial every few rounds, and a one-time remove_ads purchase that hides all ads and shows "Ad-free β". Unscramble-the-word game with banner and interstitial ads, plus a one-time Remove ads purchase.
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.ads.{loadBanner(unit?, pos?), showBanner(pos?: 'top'|'bottom'), hideBanner(), loadInterstitial(), showInterstitial(), isInterstitialLoaded(), loadRewarded(), isRewardedLoaded(), showRewarded(): Promise<{amount, type}>, on(cb: (e: {event, message?}) => void)} β AdMob; only present when ads are enabled in the builder
- 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]Turn it into an Android app
- Tap Edit & build online. The template opens in the online editor.
- Change the text, colors and code, then pick an app name, an icon and a package name.
- Build. You get a signed APK to install and an AAB for Google Play, free, with no account and no watermark.
More Earn templates
Trivia Night
Quiz rounds with a rewarded 50/50 hint, an interstitial every 3rd round and a banner on the results only.
Daily Quotes
Quote cards with favourites; an ad every 8 quotes on Next, and a rewarded ad unlocks a bonus pack for 24 h.
Coin Clicker
Idle tap game with upgrades, a rewarded 2Γ boost for 60 s, level-up ads every 3rd level and a shop banner.
Story Reader
A five-chapter story; the next chapter is free after 10 minutes or right away with a rewarded ad.
Tap Jumper
Canvas endless runner with a rewarded Continue once per run, an ad every 3rd game over and a game-over banner.
Notes Pro
Notes app with a one-time Pro unlock: themes, pinning, .txt export and unlimited notes via Google Play.