- 在项目中引入expo-notifications库,支持本地推送通知功能 - 实现通知权限管理,用户可选择开启或关闭通知 - 新增通知发送、定时通知和重复通知功能 - 更新个人页面,集成通知开关和权限请求逻辑 - 编写推送通知功能实现文档,详细描述功能和使用方法 - 优化心情日历页面,确保数据实时刷新
73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
{
|
|
"expo": {
|
|
"name": "Sealife",
|
|
"slug": "digital-pilates",
|
|
"version": "1.0.4",
|
|
"orientation": "portrait",
|
|
"icon": "./assets/images/Sealife.jpeg",
|
|
"scheme": "digitalpilates",
|
|
"userInterfaceStyle": "light",
|
|
"newArchEnabled": true,
|
|
"jsEngine": "jsc",
|
|
"ios": {
|
|
"supportsTablet": false,
|
|
"bundleIdentifier": "com.anonymous.digitalpilates",
|
|
"infoPlist": {
|
|
"ITSAppUsesNonExemptEncryption": false,
|
|
"NSCameraUsageDescription": "应用需要使用相机以拍摄您的体态照片用于AI测评。",
|
|
"NSPhotoLibraryUsageDescription": "应用需要访问相册以选择您的体态照片用于AI测评。",
|
|
"NSPhotoLibraryAddUsageDescription": "应用需要写入相册以保存拍摄的体态照片(可选)。",
|
|
"UIBackgroundModes": ["remote-notification"]
|
|
}
|
|
},
|
|
"android": {
|
|
"adaptiveIcon": {
|
|
"foregroundImage": "./assets/images/Sealife.jpeg",
|
|
"backgroundColor": "#ffffff"
|
|
},
|
|
"edgeToEdgeEnabled": true,
|
|
"package": "com.anonymous.digitalpilates",
|
|
"permissions": [
|
|
"android.permission.RECEIVE_BOOT_COMPLETED",
|
|
"android.permission.VIBRATE",
|
|
"android.permission.WAKE_LOCK"
|
|
]
|
|
},
|
|
"web": {
|
|
"bundler": "metro",
|
|
"output": "static",
|
|
"favicon": "./assets/images/Sealife.jpeg"
|
|
},
|
|
"plugins": [
|
|
"expo-router",
|
|
[
|
|
"expo-splash-screen",
|
|
{
|
|
"image": "./assets/images/Sealife.jpeg",
|
|
"imageWidth": 40,
|
|
"resizeMode": "contain",
|
|
"backgroundColor": "#ffffff"
|
|
}
|
|
],
|
|
[
|
|
"react-native-health",
|
|
{
|
|
"enableHealthAPI": true,
|
|
"healthSharePermission": "应用需要访问您的健康数据(步数与能量消耗)以展示运动统计。",
|
|
"healthUpdatePermission": "应用需要更新您的健康数据(体重信息)以记录您的健身进度。"
|
|
}
|
|
],
|
|
[
|
|
"expo-notifications",
|
|
{
|
|
"icon": "./assets/images/Sealife.jpeg",
|
|
"color": "#ffffff",
|
|
"sounds": ["./assets/sounds/notification.wav"]
|
|
}
|
|
]
|
|
],
|
|
"experiments": {
|
|
"typedRoutes": true
|
|
}
|
|
}
|
|
} |