diff --git a/ios/DeveloperApp/AppDelegate.swift b/ios/DeveloperApp/AppDelegate.swift index ac8b883..bb7d331 100644 --- a/ios/DeveloperApp/AppDelegate.swift +++ b/ios/DeveloperApp/AppDelegate.swift @@ -19,6 +19,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + SessionCookieStore.restore() //iOS does not persist session cookies across app restarts, this helps persisting session cookies to match behaviour with Android clearKeychainIfNecessary() UIApplication.shared.isIdleTimerDisabled = true @@ -102,6 +103,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } func applicationDidEnterBackground(_ application: UIApplication) { + SessionCookieStore.persist() //iOS does not persist session cookies across app restarts, this helps persisting session cookies to match behaviour with Android } func applicationWillEnterForeground(_ application: UIApplication) { @@ -111,6 +113,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } func applicationWillTerminate(_ application: UIApplication) { + SessionCookieStore.persist() //iOS does not persist session cookies across app restarts, this helps persisting session cookies to match behaviour with Android } //Called when a notification is delivered to a foreground app. diff --git a/package-lock.json b/package-lock.json index abee4fc..292e35e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@gorhom/bottom-sheet": "^5.1.1", - "@mendix/native": "9.2.0", + "@mendix/native": "9.2.2", "@op-engineering/op-sqlite": "9.2.7", "@react-native-async-storage/async-storage": "2.0.0", "@react-native-camera-roll/camera-roll": "7.4.0", @@ -2008,9 +2008,9 @@ } }, "node_modules/@mendix/native": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.2.0.tgz", - "integrity": "sha512-mzq+WCmuGW06PbSYCOd/lZ7Ub0mkVvN2nuwPJA2bwgamePu/kSHeDcf8jP+kazqpknIPs4al6JM7GwFPgjQa4g==" + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.2.2.tgz", + "integrity": "sha512-9nW2xfM7QQVj91nwbOsLWUftAv66QYktfE4Nh6blHX+HVwxpgCO9nZ7ekE4wYcKFExps/xOyx+8MSfZFLIgrDQ==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -10780,9 +10780,9 @@ } }, "@mendix/native": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.2.0.tgz", - "integrity": "sha512-mzq+WCmuGW06PbSYCOd/lZ7Ub0mkVvN2nuwPJA2bwgamePu/kSHeDcf8jP+kazqpknIPs4al6JM7GwFPgjQa4g==" + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.2.2.tgz", + "integrity": "sha512-9nW2xfM7QQVj91nwbOsLWUftAv66QYktfE4Nh6blHX+HVwxpgCO9nZ7ekE4wYcKFExps/xOyx+8MSfZFLIgrDQ==" }, "@nodelib/fs.scandir": { "version": "2.1.5", diff --git a/package.json b/package.json index 2c3b1c0..3d5e84c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@gorhom/bottom-sheet": "^5.1.1", - "@mendix/native": "9.2.0", + "@mendix/native": "9.2.2", "@op-engineering/op-sqlite": "9.2.7", "@react-native-async-storage/async-storage": "2.0.0", "@react-native-camera-roll/camera-roll": "7.4.0",