[ ] Think if all of the use cases can be done without determining the device being mobile. It may be that we don't need the function at all. Nowadays the difference between a mobile and desktop can be very fluid: is tablet a mobile device or desktop? how about if it has a keyboard? how about small laptops?
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