Script is accessing navigator.userAgent, navigator.appVersion or navigator.platform

I have a simply app using cordova and angular developed in Ionic 5 and upgraded to ionic 7.
I cant debug it because Chrome debug does not show me noting but start.
I have error:


  1. A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.

To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.

Note that for performance reasons, only the first access to one of the properties is shown.

  1. AFFECTED RESOURCES

  2. 1 source

1. polyfills.js:1

How can I fix it?

Pietro