Free HTML to APK
← Tous les modèles
📒
Revenus

Modèle d'application Notes Pro

Application de notes avec un déblocage Pro en achat unique : thèmes, épinglage, export .txt et notes illimitées via Google Play.

RevenusNécessite Internet4 fonctions du téléphone

✏️ Modifier et compiler en ligne Ouvrir en plein écran

Voici le modèle en direct. Les fonctions du téléphone comme l’appareil photo, la vibration et les notifications fonctionnent dans l’application que vous compilez.

Fonctions du téléphone utilisées par ce modèle

Elles proviennent du pont JavaScript FreeApp inclus dans chaque application créée avec Free HTML to APK. Dans un navigateur normal, le modèle fonctionne quand même et les appels ne font simplement rien.

Achats intégrés

FreeApp.billing.*

Enregistrer des fichiers

FreeApp.saveFile()

Enregistre dans Téléchargements ; FreeApp.on('saved', d => …) donne {name, ok, location}.

Messages toast

FreeApp.toast()

Court toast natif.

Vibration

FreeApp.vibrate()

Une vibration unique (50 ms par défaut) ou un motif [off, on, off, on…].

Comment le modèle les appelle

let pro = FreeApp.billing.isOwned('pro_unlock');
FreeApp.billing.on(e => { if (e.event === 'owned') pro = e.owned.includes('pro_unlock'); });
FreeApp.billing.buy('pro_unlock').catch(e => e.code !== 'cancelled' && FreeApp.toast(e.message));

Personnalisez-le avec l'IA

Copiez ce prompt dans ChatGPT, Gemini ou Claude, remplacez l'idée par la vôtre, puis collez la réponse dans l'éditeur. Il explique déjà à l'IA la structure de l'application et les fonctions du téléphone.

Afficher le prompt IA
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.

The app: Notes Pro — a notes app (create, edit, delete, search) where a one-time pro_unlock purchase adds colour themes, pinning, export to .txt and unlimited notes (free: 10). Notes app with a one-time Pro unlock: themes, pinning, .txt export and unlimited notes via Google Play.

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.saveFile(name: string, mime: string, data: string /* base64 or data: URL */ | Blob): Promise<boolean> — saves to Downloads; FreeApp.on('saved', d => …) gives {name, ok, location}
- 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]

Transformez-le en application Android

  1. Touchez Modifier et compiler en ligne. Le modèle s'ouvre dans l'éditeur en ligne.
  2. Modifiez le texte, les couleurs et le code, puis choisissez un nom d'application, une icône et un nom du package.
  3. Compilez. Vous obtenez gratuitement un APK signé à installer et un AAB pour Google Play, sans compte et sans filigrane.

✏️ Modifier et compiler en ligne DISPONIBLE GRATUITEMENT SURGoogle Play