opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
79 stars 58 forks source link

`isMobileDevice` is not reliable #7269

Open naftis opened 5 days ago

naftis commented 5 days ago

https://github.com/opencrvs/opencrvs-core/blob/e0d02579c4fc6751338e620da368d763afdeeee5/packages/client/src/utils/commonUtils.ts#L12 The criteria utilized by the function to identify a mobile device are not reliable. This can lead to mobile devices not being recognized as such. It affects printing, determining PIN screen visibility and handling scrolling form elements into focus.

Dev tasks