Skip to content

Navigation fails when called in the background with tns-core-modules 5.4.2 #1865

Open
@KkevinLi

Description

@KkevinLi

Environment
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 5.4.0 and the latest available version is 5.4.1.
✔ Component tns-core-modules has 5.4.2 version and is up to date.
✔ Component tns-android has 5.4.0 version and is up to date.
✔ Component tns-ios has 5.4.2 version and is up to date.

Describe the bug

Calling routerExtensions.navigate fails if the app is not foregrounded on Android with tns-core-modules 5.4.2

To Reproduce

In the sample app background the app or close the screen. In 2 seconds navigate will be called which "succeeds", but the page did not change. Downgrade to 5.4.1 and the navigation will work.

Expected behavior
Like the prior version, when navigate is called the page should change.

Sample project

https://github.com/KkevinLi/NavigateBug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions