Datenschutzmanifest und iOS-URL-Handler
Eine Einrichtungsanweisung mit den Installationsanweisungen und der vollständigen Markdown-Dokumentation für diesen Plugin kopieren.
Datenschutzmanifest für App-Entwickler
Abschnitt mit dem Titel „Datenschutzmanifest für App-Entwickler“Wenn Sie Google, Facebook oder Apple-Login verwenden, deklarieren Sie die von diesen SDKs gesammelten Daten in Ihrer App’s PrivacyInfo.xcprivacy Datei. Fügen Sie die Datei in Ihrer App bei ios/App/PrivacyInfo.xcprivacy.
Fügen Sie diese Datei nicht in das Plugin-Paket ein. Passen Sie die Datentypen an Ihre App’s Verwendung und die SDK-Dokumentation an.
Beispiel für Google-Anmeldung
Abschnitt mit dem Titel „Beispiel für Google-Anmeldung“{ "NSPrivacyCollectedDataTypes": [ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false } ]}Beispiel für Facebook-Login
Abschnitt mit dem Titel „Beispiel für Facebook-Login“{ "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 } ]}Beispiel für Apple-Anmeldung
Abschnitt mit dem Titel „Beispiel für Apple-Anmeldung“{ "NSPrivacyCollectedDataTypes": [ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false } ]}Überprüfen Dokumentation von Apples Privacy Manifest für alle zulässigen Schlüssel und Werte.
Combiniere Facebook- und Google-URL-Handler
Abschnitt mit dem Titel „Combiniere Facebook- und Google-URL-Handler“Wenn ein iOS-App sowohl Facebook als auch Google-Login verwendet, leite die Callback-URL an beide SDKs weiter, bevor du sie an Capacitor zurückgibst.
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)}Stelle sicher AppDelegate.swift Importiere die von deiner App verwendeten SDKs:
import Capacitorimport FBSDKCoreKitimport GoogleSignInimport UIKit