메뉴로 바로가기

개인 정보 보호 선언 및 iOS URL 핸들러

GitHub

앱 개발자들을 위한 개인 정보 보호 매니페스트

앱 개발자들을 위한 개인 정보 보호 매니페스트

Google, Facebook, 또는 Apple 로그인 사용 시, 해당 SDK가 수집한 데이터를 앱의 PrivacyInfo.xcprivacy 파일에 선언하세요. 앱에 파일을 추가하세요. ios/App/PrivacyInfo.xcprivacy.

이 파일을 플러그인 패키지에 추가하지 마세요. 데이터 타입은 앱의 사용 방식과 SDK 문서를 참고하여 조정하세요.

Google Sign-In 예시

Google Sign-In 예시
{
"NSPrivacyCollectedDataTypes": [
{ "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
]
}

Facebook Login 예시

Facebook Login 예시
{
"NSPrivacyCollectedDataTypes": [
{ "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "FriendsList", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
]
}

Apple Sign-In 예시

Apple Sign-In 예시
{
"NSPrivacyCollectedDataTypes": [
{ "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
]
}

리뷰 애플의 개인 정보 보호 선언 문서 모든 허용된 키와 값에 대해.

페이스북과 구글 URL 핸들러를 combine

제목이 '페이스북과 구글 URL 핸들러를 combine'인 섹션

iOS 앱이 페이스북과 구글 로그인 모두 사용할 때, 콜백 URL을 두 SDK에 전달하고 나서 Capacitor에 다시 전달합니다.

에서 ios/App/App/AppDelegate.swift:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
// Return true if the URL was handled by either Facebook or Google authentication.
if FBSDKCoreKit.ApplicationDelegate.shared.application(
app,
open: url,
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
) || GIDSignIn.sharedInstance.handle(url) {
return true
}
return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
}

보장 AppDelegate.swift 앱에서 사용하는 SDK를 import합니다:

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit