Declaración de privacidad y manipuladores de URL iOS
Copiar un prompt de configuración con los pasos de instalación y la guía markdown completa para este plugin.
Privacy manifest for app developers
Declaración de privacidad para desarrolladores de aplicacionesSi utiliza el inicio de sesión de Google, Facebook o Apple, declare los datos recopilados por esos SDKs en su aplicación. PrivacyInfo.xcprivacy Agregue el archivo en su aplicación en ios/App/PrivacyInfo.xcprivacy.
No agregue este archivo al paquete del plugin. Ajuste los tipos de datos para que coincidan con el uso de su aplicación y la documentación del proveedor SDK.
Ejemplo de inicio de sesión de Google
Ejemplo de inicio de sesión de Google{ "NSPrivacyCollectedDataTypes": [ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false } ]}Ejemplo de inicio de sesión de Facebook
Ejemplo de inicio de sesión de Facebook{ "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 } ]}Ejemplo de Apple Sign-In
Ejemplo de inicio de sesión de Apple{ "NSPrivacyCollectedDataTypes": [ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }, { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false } ]}Revisar Documentación de manifestos de privacidad de Apple para todas las claves y valores permitidos.
Combina los manipuladores de URL de Facebook y Google
Sección titulada “Combine Facebook and Google URL handlers”Cuando una aplicación de iOS utiliza tanto Facebook como Google para iniciar sesión, envía la URL de llamada a ambos SDK antes de devolverla a Capacitor.
En 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)}Asegúrate de que AppDelegate.swift importe los SDK utilizados por tu aplicación:
import Capacitorimport FBSDKCoreKitimport GoogleSignInimport UIKit