fix not in ios
This commit is contained in:
parent
339d3ab725
commit
580be6d713
|
@ -1,6 +1,6 @@
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
import Flutter
|
import Flutter
|
||||||
|
import flutter_secure_storage
|
||||||
|
|
||||||
@main
|
@main
|
||||||
@objc class AppDelegate: FlutterAppDelegate {
|
@objc class AppDelegate: FlutterAppDelegate {
|
||||||
|
@ -9,6 +9,11 @@ import Flutter
|
||||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||||
) -> Bool {
|
) -> Bool {
|
||||||
GeneratedPluginRegistrant.register(with: self)
|
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)
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue