From 72d3e2eb8a851d8d107a9978b6e3c318b14a8d93 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke <25844542+YogendraShelke@users.noreply.github.com> Date: Tue, 22 Sep 2026 19:45:03 +0530 Subject: [PATCH] fix: resolve deep link issue on iOS --- CHANGELOG.md | 2 ++ ios/Dev/AppDelegate.swift | 8 +++----- ios/Podfile.lock | 2 +- package-lock.json | 5 ++--- package.json | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b038224..a9bfa167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- We fixed an issue on iOS where a deep link that cold started the app was not delivered to React Native, causing `Linking.getInitialURL()` to return `null`. + ## [17.4.2] - 2026-08-24 - We hardened the Android main screen against overlay and tapjacking attacks, and removed the unused `SYSTEM_ALERT_WINDOW` permission. diff --git a/ios/Dev/AppDelegate.swift b/ios/Dev/AppDelegate.swift index b174b720..7a28d334 100644 --- a/ios/Dev/AppDelegate.swift +++ b/ios/Dev/AppDelegate.swift @@ -47,10 +47,8 @@ class AppDelegate: ReactAppProvider { isDevModeEnabled: AppPreferences.devModeEnabled ) - let launchOptions = NSMutableDictionary(dictionary: options) - launchOptions[UIApplication.LaunchOptionsKey.url] = url - launchOptions[UIApplication.OpenURLOptionsKey.annotation] = options[UIApplication.OpenURLOptionsKey.annotation] - + let launchOptions = ReactAppProvider.launchOptions(from: url, options: options) + let mxApp = MendixApp.init( identifier: nil, bundleUrl: bundleUrl, @@ -63,7 +61,7 @@ class AppDelegate: ReactAppProvider { enableThreeFingerGestures: false ) - ReactNative.shared.setup(mxApp, launchOptions: launchOptions as? [AnyHashable : Any]) + ReactNative.shared.setup(mxApp, launchOptions: launchOptions) ReactNative.shared.start() return handled diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 9de88f44..becc85dd 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -2676,4 +2676,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: e265124740c7e8d3ce93ef970c87f247433e1c66 -COCOAPODS: 1.17.0 +COCOAPODS: 1.16.2 diff --git a/package-lock.json b/package-lock.json index 49c3a30d..f9a9624f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@react-native-picker/picker": "2.11.0", "@react-navigation/native": "7.0.14", "@shopify/flash-list": "2.2.2", - "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.4/mendix-native-v0.3.4.tgz", + "mendix-native": "https://github.com/mendix/mendix-native#moo/MOO-2487-deeplink-issue-fix", "react-native": "0.78.2", "react-native-blob-util": "0.21.3", "react-native-bootsplash": "6.3.10", @@ -6497,8 +6497,7 @@ }, "node_modules/mendix-native": { "version": "0.3.4", - "resolved": "https://github.com/mendix/mendix-native/releases/download/v0.3.4/mendix-native-v0.3.4.tgz", - "integrity": "sha512-vzac18InM/6RhjVEZi+0geN2qlv6xJSeIOrOSvDGiZRr4jbtDUUKhFwl4z2pj8+MKKgAgz6Atcs/xL9Cn7zAEg==", + "resolved": "git+ssh://git@github.com/mendix/mendix-native.git#15f5257bc5a25f659504850ea1861fa48a0bf553", "license": "MIT", "workspaces": [ "example" diff --git a/package.json b/package.json index e605e221..acd9520d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dependencies": { "@d11/react-native-fast-image": "8.11.1", "@gorhom/bottom-sheet": "5.1.1", - "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.4/mendix-native-v0.3.4.tgz", + "mendix-native": "https://github.com/mendix/mendix-native#moo/MOO-2487-deeplink-issue-fix", "@op-engineering/op-sqlite": "15.0.7", "@shopify/flash-list": "2.2.2", "@react-native-async-storage/async-storage": "2.0.0",