Saltar al contenido

Declaración de privacidad y manipuladores de URL de iOS

GitHub

Manifiesto de privacidad para desarrolladores de aplicaciones.

Sección titulada “Manifiesto de privacidad para desarrolladores de aplicaciones”.

Si utiliza Google, Facebook o Apple login, declare los datos recopilados por esos SDKs en el archivo de su aplicación. PrivacyInfo.xcprivacy Agregar 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.

{
"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 }
]
}

Revisar Documentación de la declaración de privacidad de Apple para todas las claves y valores permitidos.

Cuando una aplicación de iOS utiliza tanto Facebook como Google para iniciar sesión, envía la URL de llamada de vuelta a ambos SDKs antes de pasarla 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 AppDelegate.swift importa las bibliotecas utilizadas por tu aplicación:

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit