Skip to content

fix(bindings): UIScene lifecycle for RN example apps on iOS 26+ - #517

Merged
Ankush523 merged 5 commits into
mainfrom
fix/demo-app-ios-scene-lifecycle
Oct 6, 2026
Merged

Ankush523 merged 5 commits into
mainfrom
fix/demo-app-ios-scene-lifecycle

Conversation

@Ankush523

@Ankush523 Ankush523 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adopts UIScene lifecycle (required on iOS 26+) for all four React Native example apps:

  • examples/demo-app
  • examples/react-native-app
  • examples/nostr-example
  • examples/mesh-wiki

What changed

  • Scene lifecycle — React Native starts in SceneDelegate; AppDelegate configures the factory and scene. AppDelegate.window is set for RCTDeviceInfo and related RN APIs.
  • Launch options — Shared examples/shared/ios/ReactNativeSceneLaunchOptions.swift merges application(_:didFinishLaunchingWithOptions:) with scene connectionOptions (URL, notification, user activity) before startReactNative.
  • Debug JS loading — Simulator uses Metro; physical device prefers embedded main.jsbundle when present (demo README documents rebuild-after-JS for device Debug).
  • Pods / toolchain — IPHONEOS_DEPLOYMENT_TARGET 15.1 in each example Podfile post_install; shared examples/shared/ios/pod_fmt_consteval_patch.rb for fmt / Xcode 26+ build failures.
  • Ruby — nkf in example Gemfiles where needed for Ruby 3.4+ pod install.
  • Docs (demo-app) — iOS simulator vs device Debug behavior; optional DevelopmentTeam.xcconfig.example (not wired into the Xcode target; signing still via Signing & Capabilities or your own xcconfig wiring).

Verification

Manual iOS ↔ Android BLE smoke test on Offline Demo (iPhone 12, iOS 27.0.1): onboarding, People discovery, Chats messaging.

Test plan

  • Offline Demo on physical iPhone (iOS 27): launch, onboarding, People, Chats
  • Offline Demo on iOS Simulator (iOS 27): xcodebuild succeeds
  • Optional: pod install + iOS build for react-native-app, nostr-example, mesh-wiki on Xcode 26+

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Ankush523

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 6, 2026
@Ankush523 Ankush523 changed the title fix(bindings): run Offline Demo on iOS 26+ with UIScene lifecycle fix(bindings): UIScene lifecycle for RN example apps on iOS 26+ Oct 6, 2026
@Ankush523
Ankush523 merged commit d57ada1 into main Oct 6, 2026
24 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant