Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NativeScript/NativeScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: NativeScript/NativeScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: refs/pull/11373/head
Choose a head ref
  • 4 commits
  • 8 files changed
  • 2 contributors

Commits on Aug 28, 2026

  1. fix(core): resolve the active window instead of UIApplication.keyWindow

    getWindow() is the single answer to which UIWindow NativeScript means - screen
    metrics, the root view controller lookup and the embedded host all read it - and
    it asked UIKit. UIApplication.keyWindow is deprecated, and under scenes key
    status can sit on any connected scene's window, including one NativeScript does
    not own.
    
    It now answers from the window registry first, falling back to the UIKit lookups
    unchanged. A detached window is skipped: it holds its UIWindow reference until a
    surface re-attaches, but that surface is gone.
    edusperoni committed Aug 28, 2026
    Configuration menu
    Copy the full SHA
    53c1256 View commit details
    Browse the repository at this point in the history
  2. fix(core): raise application foreground/background and resume/suspend…

    … in scene mode
    
    Scene-based apps stopped raising the application-level lifecycle events: the
    per-scene calls were replaced by UIApplication notifications that do not arrive
    once an app adopts scenes. Even a single-window app lost them.
    
    They are now derived from the windows themselves, as Android already does with
    its started-activity count: the app enters the foreground when the first
    application-role window does and leaves it when the last one goes, and the same
    for active state. Windows in other roles never speak for the app, and the
    notification handlers stay in charge for non-scene apps.
    edusperoni committed Aug 28, 2026
    Configuration menu
    Copy the full SHA
    690bda2 View commit details
    Browse the repository at this point in the history
  3. fix(core): raise Android resume/suspend from the last active window, …

    …not per activity
    
    background/foreground was already aggregated across activities, but
    resume/suspend fired per activity - so with more than one window, pausing one
    raised 'suspend' while another was still on screen and active.
    
    They are now derived from the set of active windows, matching the iOS side:
    'resume' when the first window becomes active, 'suspend' when the last one
    resigns. Resume is still raised from onPostResume, and only NativeScript
    activities take part, as before.
    edusperoni committed Aug 28, 2026
    Configuration menu
    Copy the full SHA
    2a4cdf3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8c4796d View commit details
    Browse the repository at this point in the history
Loading