Skip to content

Nugon SOS v1.0 - Versión Inicial

Choose a tag to compare

@jzsalinas jzsalinas released this 27 Jul 14:45

Nugon SOS is now fully operational and optimized for the most challenging Android power-saving scenarios. It provides a reliable emergency trigger for users with limited time and mobility.

Key Technical Solutions

1. Reliable Hardware Trigger (MediaSession + A11y)

To bypass Android's "Deep Sleep" where volume buttons are normally ignored:

  • MediaSession: We've implemented a silent audio loop linked to a MediaStyle notification. This "tricks" the system into keeping the volume key pipeline open even when the screen is off.
  • Redundancy: The AccessibilityService remains as a secondary listener for when the device is awake, ensuring no press is ever missed.

2. Battery & Persistence (Foreground Service + WakeLock)

  • Indestructible Service: The EmergencyService runs as a Foreground Service with a persistent notification. It stays active 24/7 to monitor for button presses.
  • WakeLock: When a button press is detected, the app acquires a WakeLock to keep the CPU awake during the 1.5s countdown and the subsequent GPS/Network tasks.

3. Multi-Channel Alerting

  • Smart SMS: Uses sendMultipartTextMessage to handle Unicode characters (like "¡") and long URLs without failing.
  • PWA Integration: Sends a rich JSON payload (Sender ID, Message, Lat/Long) to a custom backend for Web Push notifications.

Final UI/UX Polishing

  • Visual Feedback: Buttons in the dashboard change to Green/Orange with White text based on the real-time status of system permissions.
  • Haptic Language:
    • 50ms pulse: Button detected.
    • 1000ms pulse: Alert sent.
  • User Guidance: Added a card with clear instructions for device-specific edge cases.