Free HTML to APK
← Tous les modèles
🔔
Système

Modèle d'application Notifications

Envoyez des notifications locales instantanées et programmées.

SystèmeFonctionne hors ligne5 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.

Notifications

FreeApp.notify()

Notification locale immédiate (demande l'autorisation sur Android 13+).

Notifications programmées

FreeApp.scheduleNotification()

Renvoie l'identifiant.

Demandes d'autorisation

FreeApp.requestPermission()

Vérification des autorisations

FreeApp.hasPermission()

Ouvrir les paramètres de l'application

FreeApp.openSettings()

Ouvrir la page des paramètres système de cette application.

Comment le modèle les appelle

async function remind() {
  if (!window.FreeApp) return;
  if (!FreeApp.hasPermission('notifications')) await FreeApp.requestPermission('notifications');
  FreeApp.notify('Hello', 'Sent right now');
  FreeApp.scheduleNotification('Reminder', 'Five minutes passed', 5 * 60 * 1000);
}

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: Notifications — a notification center that sends instant and scheduled local notifications. Send instant and scheduled local notifications.

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-*).
- Must work fully offline: no CDN or external scripts, fonts or images; persist data in localStorage.

The page runs inside an Android app that injects a native bridge as window.FreeApp. Available APIs:
- FreeApp.notify(title: string, body?: string): void — instant local notification (asks permission on Android 13+)
- FreeApp.scheduleNotification(title: string, body: string, delayMs: number, opts?: {id?: number, url?: string, repeatMs?: number, exact?: boolean}): number — returns the id
- FreeApp.requestPermission(name: 'camera' | 'microphone' | 'location' | 'notifications'): Promise<boolean>
- FreeApp.hasPermission(name: string): boolean
- FreeApp.openSettings(): void — open this app's system settings page

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