react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

Is there any way how to push user agent to mobile list ?

Open JaLe29 opened this issue 6 years ago • 2 comments

I am using Apache Cordova (in short my custom web browser) with user agent (User-Agent: "this is my mobile app") and problem is that import {isMobile} from 'react-device-detect' returns false for my app (it`s running on android).

Is there any way how to push my UserAgent into library list? It should return true because its running on adroid - but with unknown user agent... :-)

Any tips?

In worst case I can use if (isMobile || getUA() === this is my mobile app)...

Thanks

JaLe29 avatar Dec 26 '19 21:12 JaLe29

@JaLe29 not yet. But I planning to add such feature in the future

duskload avatar Dec 29 '19 10:12 duskload

This will be especially helpfull with SSR https://github.com/duskload/react-device-detect/issues/75

paul-vd avatar May 23 '20 10:05 paul-vd