コンテンツにジャンプ

プライバシーマニフェストと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 }
]
}

クリップボードにコピー

Section titled “Facebook Login example”
{
"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 のプライバシー宣言ドキュメント すべての許可されたキーと値に対して。

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)
}

iOS アプリが両方のログインを使用する場合、コールバック URL を両方の SDK にルーティングし、__CAPGO_KEEP_0__ に戻す前にそれを戻します。 AppDelegate.swift __CAPGO_KEEP_0__をインポートします。

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit
「関連ドキュメント」