Enable Animations at Runtime

For older versions of Android I have noticed lag and poor performance due to animations. To fix these performance issue I disable animations by importing the IonicModule with animated set to false:
IonicModule.forRoot({animated: false})

I do not want to disable animations for all browsers/devices so I was wondering if it is possible to re enable animations dynamically at run time, maybe in app.component.ts

app.component.ts

this.platform.ready().then(() => {
  let chromeVersion = navigator.userAgent.match(/chrom(?:e|ium)\/(\d+)\./i);
  if(!!chromeVersion && parseInt(chromeVersion[1]) > 69){
      //code to enable animations
  }
});

i don’t find any solutions for changing the App Modules Config on Runtime.

A Workaround could be to create a Service that handles all Navigation Events. Then you can use the option animated on the NavController based ob your above check.

That sounds like a good idea. I may implement something like that if there is no general solution.