개인 정보 선언 및 iOS URL 핸들러
설치
애플리케이션 개발자용 개인 정보 보호 선언
애플리케이션 개발자용 개인 정보 보호 선언Google, Facebook 또는 Apple 로그인 사용 시, 해당 SDK가 앱에서 수집한 데이터를 선언해야 합니다. PrivacyInfo.xcprivacy 앱에 파일을 추가하세요. ios/App/PrivacyInfo.xcprivacy.
플러그인 패키지에 이 파일을 추가하지 마십시오. 데이터 유형은 앱의 사용과 SDK 제공자 문서에 따라 조정하십시오.
Google Sign-In 예시
클립보드 복사{ "NSPrivacyCollectedDataTypes": [ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false } ]}Facebook 로그인 예시
Apple Sign-In 예시{ "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 } ]}리뷰 Apple의 개인 정보 정책 문서 모든 허용된 키와 값에 대해.
Facebook과 Google URL 핸들러를 combine
Facebook과 Google URL 핸들러를 결합하십시오iOS 앱이 Facebook과 Google 로그인을 모두 사용할 때, SDK를 모두 호출하여 callback URL을 Capacitor로 되돌려 보내야 합니다.
In 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)}import AppDelegate.swift 앱에서 사용하는 SDK들을 가져옵니다.
import Capacitorimport FBSDKCoreKitimport GoogleSignInimport UIKit