Files
bincio-rec/app.json
T
Davide Scaini 4e1c2ebef9 fix: battery optimization prompt — add missing manifest permission and fix fallback
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS intent is silently dropped without
the matching manifest permission. Added it to app.json permissions.
Also replaced .catch() chain (which only triggers on thrown errors) with
try/catch blocks so the fallback to IGNORE_BATTERY_OPTIMIZATION_SETTINGS
actually fires. Added resetBatteryOptPrompt() helper to re-trigger the
prompt during testing.
2026-06-03 09:18:03 +02:00

63 lines
1.8 KiB
JSON

{
"expo": {
"name": "bincio-rec",
"slug": "bincio-rec",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "dark",
"ios": {
"supportsTablet": false,
"bundleIdentifier": "com.bincio.rec",
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "bincio-rec uses your location to record your activity track.",
"NSLocationAlwaysAndWhenInUseUsageDescription": "bincio-rec uses your location in the background to record your activity track.",
"UIBackgroundModes": ["location"]
}
},
"android": {
"package": "com.bincio.rec",
"adaptiveIcon": {
"backgroundColor": "#111111",
"foregroundImage": "./assets/android-icon-foreground.png",
"backgroundImage": "./assets/android-icon-background.png",
"monochromeImage": "./assets/android-icon-monochrome.png"
},
"predictiveBackGestureEnabled": false,
"permissions": [
"ACCESS_FINE_LOCATION",
"ACCESS_BACKGROUND_LOCATION",
"FOREGROUND_SERVICE",
"FOREGROUND_SERVICE_LOCATION",
"BLUETOOTH",
"BLUETOOTH_ADMIN",
"BLUETOOTH_SCAN",
"BLUETOOTH_CONNECT",
"REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"
]
},
"web": {
"favicon": "./assets/favicon.png"
},
"ignorePaths": ["CLAUDE.md"],
"plugins": [
"expo-sqlite",
[
"expo-location",
{
"locationAlwaysAndWhenInUsePermission": "bincio-rec records your GPS track during activities.",
"isAndroidBackgroundLocationEnabled": true,
"isAndroidForegroundServiceEnabled": true
}
],
[
"expo-notifications",
{
"icon": "./assets/icon.png",
"color": "#3b82f6"
}
]
]
}
}