fix : 권한 설명 누락 추가#133
Conversation
There was a problem hiding this comment.
Code Review
This pull request configures permissions for expo-location, expo-media-library, and expo-image-picker in app.config.js. Feedback points out that locationAlwaysPermission and isAndroidBackgroundLocationEnabled are invalid options for the expo-location plugin, and suggests adding the necessary background location permissions directly to android.permissions instead.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| [ | ||
| "expo-location", | ||
| { | ||
| locationWhenInUsePermission: | ||
| "내 위치 기반 코스 추천 및 현재 위치 표시를 위해 위치 정보 접근이 필요합니다.", | ||
| locationAlwaysAndWhenInUsePermission: | ||
| "코스 추적 중 앱이 백그라운드에 있어도 위치를 기록하기 위해 항상 위치 접근 권한이 필요합니다.", | ||
| locationAlwaysPermission: | ||
| "코스 추적 중 앱이 백그라운드에 있어도 위치를 기록하기 위해 항상 위치 접근 권한이 필요합니다.", | ||
| isIosBackgroundLocationEnabled: true, | ||
| isAndroidBackgroundLocationEnabled: true, | ||
| }, | ||
| ], |
There was a problem hiding this comment.
expo-location 설정 플러그인에서 locationAlwaysPermission 및 isAndroidBackgroundLocationEnabled 속성은 존재하지 않는 잘못된 옵션입니다.
- iOS의 "항상 허용" 권한 설명은
locationAlwaysAndWhenInUsePermission속성을 통해 설정됩니다. - Android의 백그라운드 위치 권한은
expo-location플러그인 옵션이 아니라,android.permissions배열에"ACCESS_BACKGROUND_LOCATION"을 직접 추가해야 적용됩니다.
현재 app.config.js 56라인에 permissions: []로 비어 있어 Android 빌드 시 위치 권한이 누락될 수 있습니다. Android에서도 정상적으로 백그라운드 위치 추적이 작동하려면 android.permissions에 아래 권한들을 추가해 주셔야 합니다:
"ACCESS_COARSE_LOCATION""ACCESS_FINE_LOCATION""ACCESS_BACKGROUND_LOCATION"
[
"expo-location",
{
locationWhenInUsePermission:
"내 위치 기반 코스 추천 및 현재 위치 표시를 위해 위치 정보 접근이 필요합니다.",
locationAlwaysAndWhenInUsePermission:
"코스 추적 중 앱이 백그라운드에 있어도 위치를 기록하기 위해 항상 위치 접근 권한이 필요합니다.",
isIosBackgroundLocationEnabled: true,
},
]
Summary