Skip to content

On Android @angular/router breaks with androidXFragment >= 1.3.0 #36

@phas02

Description

@phas02

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: <=8.1.2
  • Cross-platform modules: <=8.1.2
  • Android Runtime: <=8.1.1
  • iOS Runtime: n/a
  • Plugin(s): n/a
  • NativeScript-Angular: 12.7.0
  • Angular: 12.2.5

Describe the bug
If the androidXFragment flag is set to a version number >= 1.3.0, the @angular/router links are unresponsive when clicked. There are no error messages logged or exceptions thrown.

To Reproduce
We created a simple demo app reproducing the bug here: https://github.com/bentovsky/nativescript-angular-sample. Just set androidXFragment=1.3.0 in apps/nativescript-demo-ng/App_Resources/Android/gradle.properties and run it on a simulator. The link "Got to Child2" on the start page is not working anymore.

Expected behavior
We can upgrade androidXFragment to a version higher than 1.3.0. We need this to include other Android plugins that have a dependency on androidXFragment >= 1.3.0.

Sample project
https://github.com/bentovsky/nativescript-angular-sample

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions