Go to file
2026-03-21 15:25:56 +07:00
controllers first commit 2026-03-21 15:21:52 +07:00
models first commit 2026-03-21 15:21:52 +07:00
security first commit 2026-03-21 15:21:52 +07:00
views first commit 2026-03-21 15:21:52 +07:00
wizard first commit 2026-03-21 15:21:52 +07:00
__init__.py first commit 2026-03-21 15:21:52 +07:00
__manifest__.py docs: Add README and gitignore files, and update module author in manifest. 2026-03-21 15:25:56 +07:00
.gitignore docs: Add README and gitignore files, and update module author in manifest. 2026-03-21 15:25:56 +07:00
README.md docs: Add README and gitignore files, and update module author in manifest. 2026-03-21 15:25:56 +07:00

Mapan Loyalty Push Notifications

This Odoo 19 module acts as the backend engine for the Flutter Mobile Loyalty App's Notification System. It supports a highly effective, Firebase-free Background Fetch and In-App Notification Center mechanic directly inside your Odoo database.

Features

  • App Notifications Model (mapan.app.notification): Persistently stores historical promotional messages sent out to customers.
  • Marketing Mobile Wizard: A clean, accessible user interface to draft targeted push notifications to explicitly selected customers (or blast them out globally).
  • Public Fetch API (/api/loyalty/fetch_notifications): A secure JSON endpoint specifically designed for the Mobile App's background task to efficiently query unread promos while the phone is sleeping.

Architecture

Instead of actively pushing out network payloads to smartphones (which requires rigid Google Cloud keys), this module acts as a "Billboard". The customer's Android app uses OS-level background workers to silently wake up every 15 minutes, interrogating this Odoo API to see if new promos exist, and triggering native local notifications entirely on the device.

Usage

Simply install the module. No external APIs or JSON keys are required! You can find the marketing wizard menu under Custom > Mobile App Push.