Saltare al contenuto

Manifesto di privacy e gestori URL iOS

GitHub

Se utilizzi Google, Facebook o Apple login, dichiara i dati raccolti da quegli SDK nel tuo file di app. Aggiungi il file nel tuo progetto di app a PrivacyInfo.xcprivacy Non aggiungere questo file al pacchetto del plugin. Adatta i tipi di dati per corrispondere all'uso del tuo progetto e alla documentazione del provider __CAPGO_KEEP_0__. 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.

Sottosezione intitolata “Esempio di Google Sign-In”

Copia nel portapenne
{
"NSPrivacyCollectedDataTypes": [
{ "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
{ "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
]
}

Sottosezione intitolata “Esempio di Facebook Login”

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

Recensisci Documentazione sulla dichiarazione di privacy di Apple Per tutte le chiavi e i valori consentiti.

Quando un'app di iOS utilizza sia Facebook che Google per l'accesso, invia l'URL di callback a entrambi gli SDK prima di passarlo a Capacitor.

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

Assicurati AppDelegate.swift importa gli SDK utilizzati dall'applicazione:

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit