Skip to content

Commit 91b81ea

Browse files
chore: update mendix/native to v9.2.2 to enhance ios session cookie handling
1 parent 67fbd38 commit 91b81ea

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

ios/DeveloperApp/AppDelegate.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
1919

2020

2121
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
22+
SessionCookieStore.restore()
2223
clearKeychainIfNecessary()
2324

2425
UIApplication.shared.isIdleTimerDisabled = true
@@ -102,6 +103,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
102103
}
103104

104105
func applicationDidEnterBackground(_ application: UIApplication) {
106+
SessionCookieStore.persist()
105107
}
106108

107109
func applicationWillEnterForeground(_ application: UIApplication) {
@@ -111,6 +113,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
111113
}
112114

113115
func applicationWillTerminate(_ application: UIApplication) {
116+
SessionCookieStore.persist()
114117
}
115118

116119
//Called when a notification is delivered to a foreground app.

package-lock.json

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"dependencies": {
2121
"@gorhom/bottom-sheet": "^5.1.1",
22-
"@mendix/native": "9.2.0",
22+
"@mendix/native": "file:package.tgz",
2323
"@op-engineering/op-sqlite": "9.2.7",
2424
"@react-native-async-storage/async-storage": "2.0.0",
2525
"@react-native-camera-roll/camera-roll": "7.4.0",

package.tgz

1020 KB
Binary file not shown.

0 commit comments

Comments
 (0)