Android 10에는 앱이 기기 위치에 대한 어느 정도의 액세스를 지니고 있는지에 대한 투명성을 개선하고 사용자가 이러한 액세스에 대한 제어를 유지할 수 있게 도와주는 백그라운드 액세스 위치 알림이 포함되어 있습니다. Android 9 이하에서는 앱이 기기의 위치를 추적하는 동시에 사용자가 모르게 백그라운드에서 실행됩니다. Android 10에서는 사용자가 앱 사용 중에만 허용을 선택하거나 위치 액세스 권한을 거부하여 이러한 동작을 억제할 수 있습니다.
그림 1. 백그라운드 위치 액세스 알림
알림은 앱이 백그라운드에서 실행되는 동안 세부 위치 권한 메서드 ACCESS_FINE_LOCATION으로 보호되는 데이터에 액세스하면 트리거됩니다. 사용자가 불필요한 방해를 겪지 않도록 알림은 단일 알림에 일부 앱의 백그라운드 활동만 표시합니다. 사용자에게는 하루에 최대 1개의 알림이 표시됩니다.
액세스 요청이 백그라운드 위치 액세스 알림을 트리거하면, 여기에는 총 몇 개의 알림을 푸시해야 하는지에 따라 같은 날, 다음 날 또는 며칠 후의 나중 시점이 표시됩니다. 예를 들어 총 3개의 알림이 표시되려면 72시간이 소요됩니다.
알림은 다음에 의해 트리거되지 않습니다.
시스템 서비스처럼 기본으로 부여되지 않는 권한을 보유한 앱
항상 허용 위치 액세스 권한을 부여받았고 이미 백그라운드에서 처음으로 기기 위치에 액세스한 앱
포그라운드에서만 위치 업데이트를 수신하는 앱
대략적 위치 업데이트만 수신하는 앱
사전 설치된 앱은 대부분 기본으로 권한을 부여받습니다. 백그라운드 위치 액세스 알림 기능을 구현하기 위한 어떠한 조치도 취할 필요가 없으며 이를 맞춤설정할 수도 없습니다. 이 기능은 CTS로 테스트됩니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-05-07(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-05-07(UTC)"],[],[],null,["# Background location access reminder\n\nAndroid 10 features a background access location reminder, which\nincreases transparency into how much access apps have to a device's location and helps users\nmaintain control over such access. In Android 9 and lower, an app can track a device's location\nwhile running in the background without the user's knowledge. Users can suppress this behavior in\nAndroid 10 by\nselecting either the **Allow only while using the App** or **Deny**\nlocation access permission.\n\n**Figure 1.** Background location access reminder.\n\nA reminder gets triggered when an app accesses data protected by the fine-location permission\nmethod [`ACCESS_FINE_LOCATION`](https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION)\nwhile in the background. To prevent unnecessary interruptions to the user, the reminder doesn't\nshow all background activity for all apps in a single notification. The user sees one reminder\nper day, maximum. When an access request triggers the background location access reminder, it\nshows either later in the same day, the next day, or days later, depending on\nhow many total reminders needed to be pushed. For example, a total of 3\nnotifications takes 72 hours to show.\n\nNotifications aren't triggered for the following:\n\n- Apps that have permission granted by default, such as system services.\n- Apps that are granted **Allow all the time** location access permission, that have already accessed the device location in the background for the first time.\n- Apps that receive location updates in the foreground only.\n- Apps that receive coarse-location updates only.\n\nMost preinstalled apps have their permissions granted by default. You don't\nneed to take any action to implement the background location access reminder\nfeature, and you can't customize it. This feature is tested by CTS."]]