개인 정보 보호 매니페스트 및 iOS URL 핸들러
설치
앱 개발자용 개인 정보 보호 매니페스트
앱 개발자용 개인 정보 보호 매니페스트Google, Facebook 또는 Apple 로그인 사용 시 앱에서 수집된 데이터를 선언해야 합니다. 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 } ]}클립보드에 복사
설치, 동기화 및 원본 마크다운 가이드를 포함합니다.{ "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 } ]}애플 로그인 예제
애플 로그인 예제{ "NSPrivacyCollectedDataTypes": [ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false } ]}리뷰 애플의 개인 정보 매니페스트 문서 모든 허용된 키와 값에 대해.
페이스북과 구글 URL 핸들러를 combine
페이스북과 구글 로그인 사용하는 iOS 앱에서, 콜백 URL을 두 SDK에 전달하고 __CAPGO_KEEP_0__에 다시 전달하기 전에When an iOS app uses both Facebook and Google login, route the callback URL to both SDKs before passing it back to 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)}Make sure AppDelegate.swift 앱에서 사용하는 SDK를 임포트합니다:
import Capacitorimport FBSDKCoreKitimport GoogleSignInimport UIKit