If your app integrates AppTrackingTransparency, please indicate where in your app we can find the AppTrackingTransparency permission
Guideline 2.1 - Information Needed
We're looking forward to completing the review of your app, but we need more information to continue. Specifically, we noticed that your app uses the AppTrackingTransparency framework, but we haven't been able to locate the relevant AppTrackingTransparency permission requests.
While it is not required to implement AppTrackingTransparency at this time, we check to make sure the implementation is compliant with our guidelines when we detect the framework in an app.
Next Steps
If your app integrates AppTrackingTransparency, please indicate where in your app we can find the AppTrackingTransparency permission request.
If your app does not integrate AppTrackingTransparency, please indicate this information in the Review Notes section for each version of your app in App Store Connect when submitting for review.
권한 상태는 undetermined,granted,denied,restricted 가 있으며 안드로이드는 추가로permanentlyDenied 가 있다.
예를 들어 카메라 권한 상태가 궁금하면 Permission.camera.status 로 확인하면 된다.
var status = await Permission.camera.status;
if (status.isUndetermined) {
// We didn't ask for permission yet.
}
// You can can also directly ask the permission about its status.
if (await Permission.location.isRestricted) {
// The OS restricts access, for example because of parental controls.
}
권한 요청
아래와 같이 Permission.contacts.request() 로 요청하면 된다.
return 값은 undetermined,granted,denied,restricted 와 같은 값이다.
if (await Permission.contacts.request().isGranted) {
// Either the permission was already granted before or the user just granted it.
}
// You can request multiple permissions at once.
Map<Permission, PermissionStatus> statuses = await [
Permission.location,
Permission.storage,
].request();
print(statuses[Permission.location]);
사용예시
실제로 사용할 때는 await 가 있기 때문에 async 로 감싸진 클래스(또는 함수) 에서 다뤄야 한다.
위젯 생명주기중 하나인 initState 에서는 Future 클래스가 호출이 안된다.
이럴때는 WidgetsBinding.instance.addPostFrameCallback((_) { 요기 } 에다가 넣어주면 된다.
아래와 같은 함수를 만들어놓고 불러오면 된다.
여기서 카메라 권한 확인용으로 만든 camPermissionIsGranted 변수를 사용했다.
작업중이라 공통선이 빠져있다. 암튼 설명서 보고 연결하면 됨설명서 이미지 나는 오른쪽 타입
어 그런데 스위치가 토글 스위치다. 환풍기를 내가 정말로 끈건지 아니면 타임랙이 동작하는지 구분할 수 없다...
너무 슬픈 현실에 다시 스위치를 샀다. 나는 소비형 인간인가.
르그랑 엑셀
클래식한 엑셀 스위치
사진은 정말 못찍었는데 블링블링하면서 레트로한 엑셀 스위치다. 진짜 호주에서 수입해오는 제품. 엄청 튼튼하고 한국형이 아니라 귀찮다. 심지어 고정 나사가 저 제품에 쓰기에는 짧아서 나사도 따로 샀다. 제품 설명서에 나온 연결 방법도 잘못되서 힘들었다. 1번과 2번에 각자 선을 꽃아야 한다. 스위치에 따라 1,2 가 연결되었다 끊어졌다 한다. G 인가 하는 단자는 아에 안쓰는 단자...