Refactor components and enhance background task management
- Updated font sizes and weights in BasalMetabolismCard, MoodCard, HealthDataCard, and NutritionRadarCard for improved readability. - Removed loading state from MoodCard to simplify the component. - Adjusted styles in WeightHistoryCard for better layout and spacing. - Integrated expo-background-fetch for improved background task handling. - Updated Info.plist to include background fetch capability. - Enhanced background task registration and execution logic in backgroundTaskManager. - Added debug function to manually trigger background task execution for testing purposes.
This commit is contained in:
10
app.json
10
app.json
@@ -18,7 +18,8 @@
|
||||
"NSPhotoLibraryUsageDescription": "应用需要访问相册以选择您的体态照片用于AI测评。",
|
||||
"NSPhotoLibraryAddUsageDescription": "应用需要写入相册以保存拍摄的体态照片(可选)。",
|
||||
"UIBackgroundModes": [
|
||||
"processing"
|
||||
"background-fetch",
|
||||
"background-processing"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -69,7 +70,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"expo-background-task"
|
||||
[
|
||||
"expo-background-fetch",
|
||||
{
|
||||
"minimumInterval": 15
|
||||
}
|
||||
]
|
||||
],
|
||||
"experiments": {
|
||||
"typedRoutes": true
|
||||
|
||||
Reference in New Issue
Block a user