packages/skatespots-background: a local Capacitor Android plugin that polls our own push-service /pending and raises local notifications. Modes: off / standard (WorkManager ~15 min) / fast (foreground service ~5 min). Kotlin + AndroidManifest (POST_NOTIFICATIONS, FOREGROUND_SERVICE_DATA_SYNC, WAKE_LOCK, battery-exemption) + Gradle module. Client: useBackgroundDelivery (registers a poll token via NIP-98, seeds the plugin) + a Background delivery (Android) control in NotificationSettingsCard. The app registers by NAME, not by importing the package, so the web bundle is unaffected. UNVERIFIED - needs cap sync + a device.
18 lines
433 B
JSON
18 lines
433 B
JSON
{
|
|
"name": "skatespots-background",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "SkateSpots native background notification poller (WorkManager + foreground service). No Google services.",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"capacitor": {
|
|
"android": {
|
|
"src": "android"
|
|
}
|
|
},
|
|
"files": ["src", "android"],
|
|
"dependencies": {
|
|
"@capacitor/core": "^8.4.2"
|
|
}
|
|
}
|