Saltare al contenuto

Manifesto di privacy e gestori di URL iOS

GitHub

Se utilizzi Google, Facebook o Apple per l'accesso, dichiara i dati raccolti da quei SDK nel tuo'app. PrivacyInfo.xcprivacy aggiungi il file nel tuo app ios/App/PrivacyInfo.xcprivacy.

Non aggiungere questo file al pacchetto del plugin. Adatta i tipi di dati per corrispondere all'utilizzo dell'app e alla documentazione del provider SDK.

Sezione intitolata “Esempio di Google Sign-In”

Section titled “Google Sign-In example”
{
"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 }
]
}

Recensisci Dichiarazioni di privacy di Apple per tutte le chiavi e i valori consentiti.

Combina i gestori di URL di Facebook e Google

Esempio di gestori di URL di Facebook e Google combinati

Quando un'app 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 di AppDelegate.swift importare gli SDK utilizzati dall'app:

import Capacitor
import FBSDKCoreKit
import GoogleSignIn
import UIKit