From 580be6d71385d912fb98a96df8023d405bc90d80 Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Fri, 13 Sep 2024 14:31:37 -0300 Subject: [PATCH] fix not in ios --- ios/Runner/AppDelegate.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index e15ab6cf..5dbf2dbf 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -1,6 +1,6 @@ import UIKit - import Flutter +import flutter_secure_storage @main @objc class AppDelegate: FlutterAppDelegate { @@ -9,6 +9,11 @@ import Flutter didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) + + // Configurar o Keychain para remover dados quando o app for desinstalado + let secureStorage = FlutterSecureStoragePlugin() + secureStorage.setAccessibility(.whenPasscodeSetThisDeviceOnly) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) } -} +} \ No newline at end of file