asgayapedia

RS072: NotificationListener Research

Topic: Automatic payment detection via Android NotificationListenerService
Status: ✅ Validated (July 2026)
Key Finding: NotificationListenerService is production-ready for passive payment monitoring


Contents

Documentation

Validation Code


Research Question

Can Android NotificationListenerService reliably detect and parse bank payment notifications for automatic confirmation?

Answer: ✅ Yes. 24-hour validation test proved:


Why This Matters

For Asgaya: This is the core innovation. Automatic payment detection eliminates manual confirmation steps, making peer-to-peer BCH exchange feel magical.

For other projects: Validates that notification-based payment detection is technically feasible for:


Validation Methodology

  1. Built research app: BizumParser (minimal NotificationListenerService implementation)
  2. Ran 24-hour test: July 1-2, 2026 (22+ hours continuous operation)
  3. Tested real-world conditions: Phone locked overnight, background operation
  4. Validated against production app: Compared to NotifyFlow (10K+ downloads)
  5. Verified boot persistence: Spontaneous reboot test on July 3, 2026

Result: NotificationListenerService architecture is production-ready.


Key Insights

What Works

Service reliability: 24+ hours without crashes
Locked phone operation: Continues monitoring while locked
Background operation: No UI interaction required
Boot persistence: Auto-restarts after reboot
Parse accuracy: 100% on Sabadell Bizum notifications

Production Best Practices (from NotifyFlow)

Limitations

⚠️ iOS not supported: iOS sandboxing prevents notification interception
⚠️ Android-only solution: Phase 0 will be Android-first
⚠️ Bank format variations: Need to test multiple banks (BBVA, CaixaBank, etc.)
⚠️ OEM differences: Some manufacturers might restrict background services


Next Steps

  1. Production hardening: Add boot receiver, battery exemption, foreground service
  2. Multi-bank support: Test BBVA, CaixaBank, Santander notification formats
  3. Integration: Connect BizumParser logic to Asgaya backend APIs
  4. External validation: Share findings in bitcoincashresearch.org forum

For Researchers

If you’re exploring notification-based payment detection:

  1. Start with BizumParser code - Minimal working implementation
  2. Read RS072 - Implementation details and parsing strategies
  3. Read RS073 - Production best practices from NotifyFlow
  4. Run 24-hour test - Validate on your target device/Android version
  5. Add production hardening - Don’t skip boot receiver and foreground service

Key takeaway: The architecture works. Now it’s about hardening for production and expanding bank support.


Research completed: July 2026
Validation status: ✅ Core architecture validated
Production status: Hardening in progress (boot receiver, battery exemption, foreground service)
Related: Phase -1 external validation (after hardening complete)