본문 바로가기

Privacy Manifest 및 iOS URL Handlers

GitHub

앱 개발자를 위한 Privacy manifest

“앱 개발자를 위한 Privacy manifest” 섹션

Google, Facebook 또는 Apple 로그인을 사용하는 경우, 해당 SDK가 앱에서 수집하는 데이터를 PrivacyInfo.xcprivacy 파일에 선언해야 합니다. 앱의 다음 경로에 파일을 추가하세요: ios/App/PrivacyInfo.xcprivacy.

이 파일은 플러그인 패키지에 추가하지 마세요. 데이터 타입은 앱 사용 방식과 제공자 SDK 문서에 맞게 조정하세요.

{
"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 }
]
}

검토 Apple의 privacy manifest 문서 허용된 모든 키와 값에 대해.

Facebook과 Google URL 핸들러 결합하기

“Facebook과 Google URL 핸들러 결합하기” 섹션

iOS 앱에서 Facebook과 Google 로그인을 모두 사용하는 경우, 콜백 URL을 Capacitor로 다시 전달하기 전에 두 SDK에 모두 라우팅하세요.

다음에서 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