angular icon indicating copy to clipboard operation
angular copied to clipboard

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

Open phas02 opened this issue 4 years ago • 0 comments

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

phas02 avatar Sep 16 '21 15:09 phas02