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 el inicio de sesión de Google, Facebook o Apple, 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 todos los claves y valores permitidos.

Combina los manipuladores de URL de Facebook y Google

Sección titulada “Combina los manipuladores de URL de Facebook y Google”

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

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit