capacitor-android
Capacitor & Android Native Bridge Skill
This skill enables the assistant to handle the complex interaction between the Web layer (React) and the Native layer (Java/Android) specifically for background tracking.
Knowledge Areas
1. Android Foreground Services
- Lifecycle Management: Start/stop/restart logic for
LocationTrackingService.java. - Notifications: Maintaining persistent notifications required by Android for foreground tasks.
- Boot Persistence: Implementing
BOOT_COMPLETEDreceivers to restart tracking on device reboot.
2. Battery & Power Management
- Wakelocks: Smart management of
PARTIAL_WAKE_LOCKto balance tracking consistency with battery life. - Doze Mode: Using
AlarmManager.setExactAndAllowWhileIdle()for reliable 60s intervals. - Optimization Whitelisting: Handling
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS.
3. Capacitor Plugin Development
- Bridge Communication: Efficiently passing data between
ProTrackingPlugin.javaand React. - Native-to-Web Events: Using
notifyListenersfor real-time status updates in the UI.
More from abelv22/project-foundation
offline-sync
Expert in data persistence, local-first architectures, and synchronization strategies for Capacitor/Android applications.
99supabase-backend
Expert in Supabase architecture, SQL optimization (PostgreSQL), and backend security (RLS) for real-time tracking systems.
77bcn-transport
Expert in Barcelona's transportation geography (El Prat Airport, Sants Station) and taxi sector operational patterns.
69frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
1skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
1supabase-postgres-best-practices
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
1