gomobiledetect icon indicating copy to clipboard operation
gomobiledetect copied to clipboard

Go Mobile Detect is a lightweight Go package imported from PHP for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile...

Results 11 gomobiledetect issues
Sort by recently updated
recently updated
newest added

``` % go test -v === RUN TestMobileGrade === PAUSE TestMobileGrade === RUN TestBasicMethods --- PASS: TestBasicMethods (0.01s) === RUN TestQuickHeaders --- PASS: TestQuickHeaders (0.01s) === RUN TestNonMobileQuickHeaders --- PASS:...

Let's keep it up to date 👍 Resolved: #16

user-agent = &source=huawei_market&version=10&device_manufacturer=HUAWEI&device_brand=HONOR&device_model=DUA-LX9 Please try to look into this

why it can't to detect ipad pro 2018. as tablet. the result of tablet is false and mobile is false too

Very slow compared to PHP implementation - https://github.com/serbanghita/Mobile-Detect/blob/master/Mobile_Detect.php

What's the difference between CHROME and PROP_CHROME ? I just want to detect if the browser is Chrome using IsKey

Is seems [getHeaders](https://github.com/Shaked/gomobiledetect/blob/e6a4ad3adf1015f1e755c963f88aec32e92abc6e/gomobiledetect.go#L87) copies headers that are not used. Is there any reason for that? ``` "REQUEST_METHOD": r.Method, "HOST": r.Host, "X_REAL_IP": r.Header.Get("X_REAL_IP"), "X_FORWARDED_FOR": r.Header.Get("X_FORWARDED_FOR"), ```

The idea is to let the user to override the available Rules by adding his own rules. Another option is to allow adding more rules to the existing ones.

Basically "mobile detect" should be changed to "device detect” and support: - mobile - tablet - tv - browsers - os - etc