Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- We fixed an issue that could cause iOS apps to restart repeatedly after an OTA update.

## [v0.3.3] - 2026-06-03

- We fixed an issue that could cause Android apps to restart repeatedly after an OTA update.

## [v0.3.2] - Skip

## [v0.3.1] - 2026-01-08

- We added `SessionCookieStore` to persist, restore and clear session cookies on iOS.

## [v0.3.0] - 2025-12-09
Expand Down
25 changes: 18 additions & 7 deletions ios/Modules/ReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,11 @@ open class ReactNative: NSObject, RCTReloadListener {
// MARK: - Reload Methods
public func reload() {
guard let mendixApp = mendixApp else { return }

let otaBundleUrl = OtaJSBundleFileProvider.getBundleUrl()
if !mendixApp.isDeveloperApp, let otaBundleUrl = otaBundleUrl {
RCTReloadCommandSetBundleURL(otaBundleUrl)
}


// Note: under the New Architecture the bundle URL is resolved fresh in bundleURL(),
// which RCTHost re-invokes on reload. RCTReloadCommandSetBundleURL is a legacy-bridge
// mechanism that the bridgeless host ignores, so it is intentionally not used here.

if mendixApp.isDeveloperApp {
let runtimeInfoUrl = AppUrl.forRuntimeInfo(mendixApp.runtimeUrl.absoluteString)
RuntimeInfoProvider.getRuntimeInfo(runtimeInfoUrl) { [weak self] response in
Expand Down Expand Up @@ -153,7 +152,19 @@ open class ReactNative: NSObject, RCTReloadListener {
}

public func bundleURL() -> URL? {
return bundleUrl
// New Architecture (Bridgeless): RCTHost re-invokes this provider block on every
// reload (via RCTRootViewFactory's bundleURLBlock) instead of consulting the URL set
// by RCTReloadCommandSetBundleURL. Resolve the OTA bundle fresh here so a freshly
// deployed OTA bundle is picked up after reload. Without this, every reload re-loads
// the bundle captured at host-creation time and the app loops:
// download -> deploy -> reload -> same bundle.
//
// For the developer app (and remote debugging) the cached packager URL must be used,
// so only the production path re-resolves through BundleHelper.
if mendixApp?.isDeveloperApp == true {
return bundleUrl
}
return BundleHelper.getJSBundleFile()
}
}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mendix-native",
"version": "0.3.2",
"version": "0.3.3",
"description": "Mendix native mobile package",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
Loading