From f90465333934f845db4cdc8a98a597083cba5425 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke <25844542+YogendraShelke@users.noreply.github.com> Date: Wed, 23 Sep 2026 15:57:58 +0530 Subject: [PATCH] fix: resolve deep link issue on iOS --- CHANGELOG.md | 1 + ios/Dev/AppDelegate.swift | 8 +++----- ios/Podfile.lock | 4 ++-- package-lock.json | 7 +++---- package.json | 2 +- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11ae3c97..432c7c4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ 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`. - We removed some unused Android Permissions coming in from Manifest mergers. ## [19.1.6] - 2026-09-16 diff --git a/ios/Dev/AppDelegate.swift b/ios/Dev/AppDelegate.swift index 6b7c6322..ea4c25a6 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 bb436a77..739bad72 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -21,7 +21,7 @@ PODS: - libwebp/sharpyuv (1.5.0) - libwebp/webp (1.5.0): - libwebp/sharpyuv - - MendixNative (0.6.0): + - MendixNative (0.6.1): - hermes-engine - RCTRequired - RCTTypeSafety @@ -2907,7 +2907,7 @@ SPEC CHECKSUMS: libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7 libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8 - MendixNative: 7e5ed081dfc0cbe76d8d81b76efafba9f3dd6a4e + MendixNative: 455c4ad23d8a7c632c223d3c899edfa0ed95b5dd op-sqlite: e9ef65bcf95a97863874cee87841425bb71c8396 OpenSSL-Universal: 6082b0bf950e5636fe0d78def171184e2b3899c2 RCTDeprecation: af44b104091a34482596cd9bd7e8d90c4e9b4bd7 diff --git a/package-lock.json b/package-lock.json index 1fc5c2dd..8ddbb3ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "@react-native-vector-icons/material-icons": "12.4.1", "@react-navigation/native": "7.2.4", "@shopify/flash-list": "2.3.1", - "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.6.0/mendix-native-v0.6.0.tgz", + "mendix-native": "https://github.com/mendix/mendix-native#moo/MOO-2487-deeplink-issue-fix-master", "react-native": "0.84.1", "react-native-blob-util": "0.24.7", "react-native-bootsplash": "6.3.12", @@ -6273,9 +6273,8 @@ "license": "MIT" }, "node_modules/mendix-native": { - "version": "0.6.0", - "resolved": "https://github.com/mendix/mendix-native/releases/download/v0.6.0/mendix-native-v0.6.0.tgz", - "integrity": "sha512-7q2dCjO0dNaS7Ad+p6rQTeJaYj5nxi2lXCgMBRDuDCHqSjdDFIMuD6Q6rSyVaiDdHt1WjOMLX5jsj38AcrNIoQ==", + "version": "0.6.1", + "resolved": "git+ssh://git@github.com/mendix/mendix-native.git#08a2f10c7b848c3f4418d20057066094e6f42344", "license": "MIT", "workspaces": [ "example" diff --git a/package.json b/package.json index f054bf65..10b194a7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dependencies": { "@d11/react-native-fast-image": "8.13.0", "@gorhom/bottom-sheet": "5.2.14", - "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.6.0/mendix-native-v0.6.0.tgz", + "mendix-native": "https://github.com/mendix/mendix-native#moo/MOO-2487-deeplink-issue-fix-master", "@op-engineering/op-sqlite": "15.2.5", "@shopify/flash-list": "2.3.1", "@react-native-async-storage/async-storage": "2.2.0",