Zum Inhalt springen

Datenschutzmanifest und iOS-URL-Handler

GitHub

Wenn Sie Google, Facebook oder Apple-Login verwenden, erklären Sie die von diesen SDKs gesammelten Daten in Ihrer App-Datei. Fügen Sie die Datei in Ihrer App unter __CAPGO_KEEP_0__ hinzu. PrivacyInfo.xcprivacy Hinweis: Fügen Sie diese Datei nicht in das Plugin-Paket ein. Anpassen Sie die Datentypen an Ihre App-Verwendung und die __CAPGO_KEEP_0__-Dokumentation. ios/App/PrivacyInfo.xcprivacy.

Do not add this file to the plugin package. Adjust the data types to match your app’s usage and the provider SDK documentation.

Abschnitt mit dem Titel ‘Beispiel für Google-Anmeldung’.

Zwischenablage kopieren
{
"NSPrivacyCollectedDataTypes": [
{ "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
]
}

Abschnitt mit dem Titel ‘Beispiel für Facebook-Anmeldung’.

Zwischenablage kopieren
{
"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-Beispiel

Abschnitt: Apple Sign-In-Beispiel
{
"NSPrivacyCollectedDataTypes": [
{ "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
]
}

Überprüfen Dokumentation von Apples Datenschutzmanifest alle erlaubten Schlüssel und Werte.

Facebook- und Google-URL-Handler kombinieren

Abschnitt: Facebook- und Google-URL-Handler kombinieren

Wenn ein iOS-App sowohl Facebook als auch Google-Login verwendet, leitet die Callback-URL an beide SDKs weiter, bevor sie an Capacitor zurückgegeben wird.

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

Stellen Sie sicher AppDelegate.swift importiert die von Ihrer App verwendeten SDKs:

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit