abelv22/project-foundation90 installs
capacitor-android
Expert in Capacitor cross-platform development and Android native Java code for background services and battery optimization.
How do I install this agent skill?
npx skills add https://github.com/abelv22/project-foundation --skill capacitor-androidIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is a purely informational documentation resource for Android and Capacitor development, containing no executable code or security threats.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
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.
4. Background Geolocation
- Providers: Fine-tuning
FusedLocationProviderClientsettings (Priority, Interval, FastestInterval). - Permissions: Managing granular location permissions (Fine, Background) and notification permissions.
Guidelines for Responses
- When modifying Java code, ensure Thread Safety (especially for network calls and location updates).
- Always recommend releasing Wakelocks when the GPS fix is obtained or if a timeout occurs.
- Suggest exponential backoff for failed HTTP requests in
LocationApiClient.java. - Keep in mind Android 14+ requirements (Foreground Service Types).
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/abelv22/project-foundation/capacitor-android">View capacitor-android on skillZs</a>