メインコンテンツへスキップ

Privacy ManifestとiOS URLハンドラ

GitHub

アプリ開発者向けプライバシーマニフェスト

「アプリ開発者向けプライバシーマニフェスト」セクション

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 ドキュメント 許可されたすべてのキーと値に対して適用されます。

iOSアプリでFacebookとGoogleの両方のログインを使用する場合、コールバック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 Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit