Skip to content

Commit 62b582f

Browse files
chore: enhance iOS session cookie management and update dependencies
1 parent e4c95df commit 62b582f

File tree

5 files changed

+29
-87
lines changed

5 files changed

+29
-87
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
## [Unreleased]
88

99
- We updated mendix-native to v0.3.1, enabling session cookie persistence and restoration on iOS.
10-
- We upgraded the body-parser dependency to resolve npm audit high-severity vulnerability warnings.
1110

1211
## [17.0.1] - 2025-12-24
1312

ios/AppDelegate.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class AppDelegate: ReactAppProvider {
88

99
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
1010

11+
SessionCookieStore.restore()
1112
MendixAppDelegate.application(application, didFinishLaunchingWithOptions: launchOptions)
1213
setupApp(application: application, launchOptions: launchOptions)
1314
changeRoot(to: UIViewController())
@@ -57,10 +58,10 @@ class AppDelegate: ReactAppProvider {
5758
}
5859

5960
override func applicationWillTerminate(_ application: UIApplication) {
60-
NativeCookieModule.persistSessionCookies()
61+
SessionCookieStore.persist()
6162
}
6263

6364
override func applicationDidEnterBackground(_ application: UIApplication) {
64-
NativeCookieModule.persistSessionCookies()
65+
SessionCookieStore.persist()
6566
}
6667
}

ios/Dev/AppDelegate.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class AppDelegate: ReactAppProvider {
99

1010
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
1111

12+
SessionCookieStore.restore()
1213
MendixAppDelegate.application(application, didFinishLaunchingWithOptions: launchOptions)
1314
setupApp(application: application, launchOptions: launchOptions)
1415

@@ -69,10 +70,10 @@ class AppDelegate: ReactAppProvider {
6970
}
7071

7172
override func applicationWillTerminate(_ application: UIApplication) {
72-
NativeCookieModule.persistSessionCookies()
73+
SessionCookieStore.persist()
7374
}
7475

7576
override func applicationDidEnterBackground(_ application: UIApplication) {
76-
NativeCookieModule.persistSessionCookies()
77+
SessionCookieStore.persist()
7778
}
7879
}

ios/Extensions/AppDelegate+Extension.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ extension AppDelegate {
2626
func setupApp(application: UIApplication, launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) {
2727
setUpProvider()
2828
super.application(application, didFinishLaunchingWithOptions: launchOptions)
29-
NativeCookieModule.restoreSessionCookies()
3029
clearKeychain()
3130
setupUI()
3231
}

package-lock.json

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

0 commit comments

Comments
 (0)