ngx-device-detector
Version:
<p align="center"> <img src="https://raw.githubusercontent.com/AhsanAyaz/ngx-device-detector/master/assets/logo.svg" width="200"> </p>
425 lines (216 loc) • 16.2 kB
Markdown
## <small>9.0.2 (2025-05-30)</small>
## <small>9.0.2 (2025-05-30)</small>
## 9.0.0 (2024-12-08)
* chore(angular): add ssr ([a9f1eac](https://github.com/AhsanAyaz/ngx-device-detector/commit/a9f1eac))
* chore(angular): update to v19 ([483af46](https://github.com/AhsanAyaz/ngx-device-detector/commit/483af46))
* chore(logo): update logo svg ([ffe9768](https://github.com/AhsanAyaz/ngx-device-detector/commit/ffe9768))
## 9.0.0 (2024-12-08)
* chore(angular): add ssr ([a9f1eac](https://github.com/AhsanAyaz/ngx-device-detector/commit/a9f1eac))
* chore(angular): update to v19 ([483af46](https://github.com/AhsanAyaz/ngx-device-detector/commit/483af46))
* chore(logo): update logo svg ([ffe9768](https://github.com/AhsanAyaz/ngx-device-detector/commit/ffe9768))
## 8.0.0 (2024-06-12)
* revert(package.json): revert the package version in favor of automation ([904817b](https://github.com/AhsanAyaz/ngx-device-detector/commit/904817b))
* bump v8 ([46218a0](https://github.com/AhsanAyaz/ngx-device-detector/commit/46218a0))
* ncu completed ([a292844](https://github.com/AhsanAyaz/ngx-device-detector/commit/a292844))
* ng update completed ([bbf115a](https://github.com/AhsanAyaz/ngx-device-detector/commit/bbf115a))
* ng update completed ([bb0c47c](https://github.com/AhsanAyaz/ngx-device-detector/commit/bb0c47c))
* ng update completed ([1358fb9](https://github.com/AhsanAyaz/ngx-device-detector/commit/1358fb9))
* packages update ([04d18c6](https://github.com/AhsanAyaz/ngx-device-detector/commit/04d18c6))
* project peerDependencies ([088af2c](https://github.com/AhsanAyaz/ngx-device-detector/commit/088af2c))
* fix(ci): fix ci token for ghpages ([3004442](https://github.com/AhsanAyaz/ngx-device-detector/commit/3004442))
* fix(demo): bump ngx-device-detector version to 7.x ([7cb3874](https://github.com/AhsanAyaz/ngx-device-detector/commit/7cb3874))
## 8.0.0 (2024-06-12)
* revert(package.json): revert the package version in favor of automation ([904817b](https://github.com/AhsanAyaz/ngx-device-detector/commit/904817b))
* bump v8 ([46218a0](https://github.com/AhsanAyaz/ngx-device-detector/commit/46218a0))
* ncu completed ([a292844](https://github.com/AhsanAyaz/ngx-device-detector/commit/a292844))
* ng update completed ([bbf115a](https://github.com/AhsanAyaz/ngx-device-detector/commit/bbf115a))
* ng update completed ([bb0c47c](https://github.com/AhsanAyaz/ngx-device-detector/commit/bb0c47c))
* ng update completed ([1358fb9](https://github.com/AhsanAyaz/ngx-device-detector/commit/1358fb9))
* packages update ([04d18c6](https://github.com/AhsanAyaz/ngx-device-detector/commit/04d18c6))
* project peerDependencies ([088af2c](https://github.com/AhsanAyaz/ngx-device-detector/commit/088af2c))
* fix(ci): fix ci token for ghpages ([3004442](https://github.com/AhsanAyaz/ngx-device-detector/commit/3004442))
* fix(demo): bump ngx-device-detector version to 7.x ([7cb3874](https://github.com/AhsanAyaz/ngx-device-detector/commit/7cb3874))
# [7.0.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v6.0.2...v7.0.0) (2023-11-16)
### Features
* **v17:** migrate to v17 ([70f3f53](https://github.com/AhsanAyaz/ngx-device-detector/commit/70f3f53d1cefb9bfde2fd06ee21140e8ec98f22d))
## [6.0.2](https://github.com/AhsanAyaz/ngx-device-detector/compare/v6.0.1...v6.0.2) (2023-06-27)
## [6.0.1](https://github.com/AhsanAyaz/ngx-device-detector/compare/v5.0.1...v6.0.1) (2023-05-23)
### Bug Fixes
* **jest:** fix jest-preset-angular dependency ([85c8fd4](https://github.com/AhsanAyaz/ngx-device-detector/commit/85c8fd4ed265bbdfd27a0c7cfa874e2d11157be7))
* **jest:** install jsdom separately ([7d2f13d](https://github.com/AhsanAyaz/ngx-device-detector/commit/7d2f13dc9cd34803b492ea5a9fbe961f4ce1ec53))
* **tests:** update workflow to use node v18 ([afa4bb5](https://github.com/AhsanAyaz/ngx-device-detector/commit/afa4bb5b9da70f469e04dce7da354aef4fb8adb7))
### Features
* detect HUAWEI AGS-L09 as tablet ([62d1232](https://github.com/AhsanAyaz/ngx-device-detector/commit/62d1232cad8a0921da80c9f6afc4033f2f34f3f4))
* detect Samsung Galaxy Tab S7+ SM-T970 as a tablet ([757a502](https://github.com/AhsanAyaz/ngx-device-detector/commit/757a502c3953546e82540e29d634b5b2f3417db7))
* **v16:** migrate to v16 ([2ab640c](https://github.com/AhsanAyaz/ngx-device-detector/commit/2ab640c0a758fbdc906a502b90a60f0c6d78e8bd))
# [6.0.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v5.0.1...v6.0.0) (2023-05-13)
### Features
* **v16:** migrate to v16 ([fa8c1f6](https://github.com/AhsanAyaz/ngx-device-detector/commit/fa8c1f6eb84fdf9601d1200d763a09fb7f27c7c3))
## [5.0.1](https://github.com/AhsanAyaz/ngx-device-detector/compare/v5.0.0...v5.0.1) (2023-01-20)
# [5.0.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v4.0.0...v5.0.0) (2023-01-20)
### Bug Fixes
* **package.json:** add missing scripts ([0bebd2e](https://github.com/AhsanAyaz/ngx-device-detector/commit/0bebd2e2f34073892ec71feb729805319ff55c10))
## [4.0.1](https://github.com/AhsanAyaz/ngx-device-detector/compare/v4.0.0...v4.0.1) (2022-08-18)
## [4.0.1](https://github.com/AhsanAyaz/ngx-device-detector/compare/v4.0.0...v4.0.1) (2022-08-18)
# [4.0.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v3.0.0...v4.0.0) (2022-07-05)
### Features
* **angular:** upgrade to angular 14 ([ec1ca8e](https://github.com/AhsanAyaz/ngx-device-detector/commit/ec1ca8ea2e2fa5ce7499d5cfc758b25f9ec22e92))
* **ie11:** remove IE11 compatiblity information ([84f0d74](https://github.com/AhsanAyaz/ngx-device-detector/commit/84f0d744475c8ad6b83f32b161c7e7460687239b))
# [3.0.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.2.1...v3.0.0) (2021-11-30)
## [2.2.1](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.1.1...v2.2.1) (2021-11-30)
### Bug Fixes
* **backward-compat:** fix angular12 backward compat ([d4ddcaa](https://github.com/AhsanAyaz/ngx-device-detector/commit/d4ddcaa9142ed885e8af55f99314fd716127e6ad))
# [2.2.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.1.1...v2.2.0) (2021-11-25)
### Bug Fixes
* **lint:** fix lint issues ([255617a](https://github.com/AhsanAyaz/ngx-device-detector/commit/255617adfc3b84708c3ab1df4e76d466be7cc1ec))
# [2.2.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.1.1...v2.2.0) (2021-11-25)
### Bug Fixes
* **lint:** fix lint issues ([255617a](https://github.com/AhsanAyaz/ngx-device-detector/commit/255617adfc3b84708c3ab1df4e76d466be7cc1ec))
## [2.1.1](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.1.0...v2.1.1) (2021-05-26)
### Bug Fixes
* **ci:** fix ci builds by bumping to nodejs 12.20 ([ea7dd1c](https://github.com/AhsanAyaz/ngx-device-detector/commit/ea7dd1c2d4e4dceb83edcd4783951f6804bd3817))
# [2.1.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.10...v2.1.0) (2021-05-26)
### Bug Fixes
* **jest:** fix jest env issues for running testS ([cfe4e55](https://github.com/AhsanAyaz/ngx-device-detector/commit/cfe4e557c7dc29a2cb560b6dddbaf6dfef34adf0))
# [2.1.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.10...v2.1.0) (2021-05-26)
### Bug Fixes
* **jest:** fix jest env issues for running testS ([cfe4e55](https://github.com/AhsanAyaz/ngx-device-detector/commit/cfe4e557c7dc29a2cb560b6dddbaf6dfef34adf0))
## [2.0.10](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.7...v2.0.10) (2021-05-10)
### Bug Fixes
* **210:** fix Chrome and Safari not detected as desktop anymore ([cea0f9e](https://github.com/AhsanAyaz/ngx-device-detector/commit/cea0f9edcfc77620b3b8621af23cfbf39811f645))
* **ci:** fix travis.yml to use jest tests ([6ec4052](https://github.com/AhsanAyaz/ngx-device-detector/commit/6ec4052f6c037157d4ecdc9b17ef89d00c8a09d1))
* **demo:** fix demo deployment in CI ([b7f79c8](https://github.com/AhsanAyaz/ngx-device-detector/commit/b7f79c8291d4048a41969b4c1d2b8e1c1c7e7963))
* **tests:** fix tests ([493f1e2](https://github.com/AhsanAyaz/ngx-device-detector/commit/493f1e2495225c76c2f2d0162f2bee1dfb956412))
## [2.0.9](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.7...v2.0.9) (2021-05-05)
### Bug Fixes
* **tests:** fix tests ([493f1e2](https://github.com/AhsanAyaz/ngx-device-detector/commit/493f1e2495225c76c2f2d0162f2bee1dfb956412))
## [2.0.8](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.7...v2.0.8) (2021-04-29)
### Bug Fixes
* **tests:** fix tests ([493f1e2](https://github.com/AhsanAyaz/ngx-device-detector/commit/493f1e2495225c76c2f2d0162f2bee1dfb956412))
## [2.0.7](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.6...v2.0.7) (2021-04-20)
## [2.0.7](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.6...v2.0.7) (2021-04-20)
## [2.0.7](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.6...v2.0.7) (2021-04-20)
## [2.0.6](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.5...v2.0.6) (2021-02-27)
## [2.0.6](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.5...v2.0.6) (2021-02-27)
## [2.0.6](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.5...v2.0.6) (2021-02-27)
## [2.0.5](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.3...v2.0.5) (2021-01-12)
### Features
* **ssr-demo:** add ssr demo ([e0cf90a](https://github.com/AhsanAyaz/ngx-device-detector/commit/e0cf90adcdbcd33d3240fe68e3b2df2c0fc56aa5))
* **support-ie11:** make necessary changes to have the app run on ie11 ([cbca0c5](https://github.com/AhsanAyaz/ngx-device-detector/commit/cbca0c559e20cdfee0f955c9070645a17e99ce95))
## [2.0.3](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.2...v2.0.3) (2020-12-01)
### Bug Fixes
* **device-detector-service:** fix window.matchMedia is not a function ([800ba15](https://github.com/AhsanAyaz/ngx-device-detector/commit/800ba15a61f8f7ea389ecc3887a5e457ae332f00))
## [2.0.3](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.2...v2.0.3) (2020-12-01)
### Bug Fixes
* **device-detector-service:** fix window.matchMedia is not a function ([800ba15](https://github.com/AhsanAyaz/ngx-device-detector/commit/800ba15a61f8f7ea389ecc3887a5e457ae332f00))
## [2.0.3](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.2...v2.0.3) (2020-12-01)
# [2.0.0](https://github.com/AhsanAyaz/ngx-device-detector/compare/v2.0.0...v1.5.2) (2020-18-27)
## BREAKING CHANGES
- **DeviceDetectorModule DOES NOT EXIST ANY MORE**. Please remove its imports from your code base
- angular 5 support dropped
## 1.5.2 (REVERTED the introduced BREAKING CHANGES)
- **DeviceDetectorModule PUT BACK IN THE PACKAGE**. Updating from 1.4.x to 1.5.2 will have no effect
## 1.5.1
- just docs updates
## 1.5.0 (BREAKING CHANGES)
- **DeviceDetectorModule DOES NOT EXIST ANY MORE**. Please remove its imports from your code base
- using angular cli monorepo now
- validated tests
- linting issues fixed
- angular 5 support dropped
## 1.4.2
- Fixes [DeviceDetectorModule.forRoot returns a ModuleWithProviders type without a generic type argument](https://github.com/AhsanAyaz/ngx-device-detector/issues/144). Thanks to [PascalHonegger](https://github.com/PascalHonegger) for [PR](https://github.com/AhsanAyaz/ngx-device-detector/pull/145) and [millerf](https://github.com/millerf) for verifying.
## 1.4.1
- Fixes [Add angular 9.x universal support](https://github.com/AhsanAyaz/ngx-device-detector/issues/141). Thanks to [BruneXX](https://github.com/BruneXX) for [PR](https://github.com/AhsanAyaz/ngx-device-detector/pull/143)
## 1.4.0
- Fixes [Add Tesla detection](https://github.com/AhsanAyaz/ngx-device-detector/issues/132).
- Fixes [Galaxy Tab A is not detected (SM-T290)](https://github.com/AhsanAyaz/ngx-device-detector/issues/131)
- Exposed `setDeviceInfo` method from the `DeviceDetectorService`
## 1.3.20
- Fixes [Windows 10 detection](https://github.com/AhsanAyaz/ngx-device-detector/issues). Thanks to [Nabeel Hassan](https://github.com/Nabeelhassan).
## 1.3.19
- Fixes of Angular Universal breaking for `navigator` (same as 1.3.17 because I was sleepy)
## 1.3.18
- Fixes of Angular Universal breaking for `navigator`
## 1.3.16
- iOS Firefox detection fix
## 1.3.15
- Minor fixes
## 1.3.14
- Minor fixes
## 1.3.13
- Minor fixes
## 1.3.12
- Fixed [#113 - iPad OS13 detection](https://github.com/AhsanAyaz/ngx-device-detector/issues/113). Thanks to [Syed Saad Qamar](https://github.com/SaadQamar01)
## 1.3.11
- Fixed [#109 - The mobile device is determined to be a tablet](https://github.com/AhsanAyaz/ngx-device-detector/issues/109)
## 1.3.11
- resolved the issue of device being "Unknown"
## 1.3.9
- minor fixes
- resolved a packaging issue
## 1.3.8 (just reverts the breaking changes introduced in 1.3.7)
- Compatible with v7 and v8 projects
- Library compiled with Angular v7
- `.forRoot()` resurrected again
- fixes issue https://github.com/AhsanAyaz/ngx-device-detector/issues/92 and https://github.com/AhsanAyaz/ngx-device-detector/issues/91
## 1.3.7 **(contains breaking changes)**
- Fixed tablet and mobile devices and also fixed desktop issue. Thanks to [Syed Saad Qamar](https://github.com/Syed-Saad-Qamar) for the [PR](https://github.com/AhsanAyaz/ngx-device-detector/pull/84)
- Detect ms edge chromium. Thanks to [jrrod507](https://github.com/jrrod507) for the [PR](https://github.com/AhsanAyaz/ngx-device-detector/pull/73)
**BREAKING CHANGE**
- `DeviceDetectorModule.forRoot()` is not supported any more. Please just import `DeviceDetectorModule` in your `imports`.
## 1.3.6
- Added support for Angular 8.0
- Works with IVY engine now. (https://github.com/AhsanAyaz/ngx-device-detector/pull/69). Thanks to [mattlewis92](https://github.com/mattlewis92)
- Detects ms edge chromium (https://github.com/AhsanAyaz/ngx-device-detector/pull/73). Thanks to [jrrod507](https://github.com/jrrod507)
- Support headless chrome to be detected as Chrome browser (https://github.com/AhsanAyaz/ngx-device-detector/pull/61). Thanks to [tmair](https://github.com/tmair)
## 1.3.5
- Minor patches
- Uppercased names/descriptions of the properties for the UI
- (https://github.com/AhsanAyaz/ngx-device-detector/pull/58). Thanks to [ccd2008](https://github.com/ccd2008)
- (https://github.com/AhsanAyaz/ngx-device-detector/pull/57). Thanks to [sumitgupta0627](https://github.com/sumitgupta0627)
## 1.3.4
- Minor patches
## 1.3.3
- Minor patch for UC browser detection [#51](https://github.com/AhsanAyaz/ngx-device-detector/pull/51). Thanks to [Gailbear](https://github.com/Gailbear)
## 1.3.2
- Minor patch for edge version detection [#49](https://github.com/AhsanAyaz/ngx-device-detector/pull/49). Thanks to [pmcelreavy](https://github.com/pmcelreavy)
## 1.3.1
- Added better support for Android Browsers [#48](https://github.com/ahsanayaz/ngx-device-detector/pulls/48). Thanks to [Gailbear](https://github.com/Gailbear)
## 1.3.0 **(contains breaking changes)**
- Added support for angular 6 [#37](https://github.com/AhsanAyaz/ngx-device-detector/issues/37)
- Drop support for angular 4
## 1.2.3
- Updated the readme for IE support
## 1.2.2 **(contains breaking changes)**
- Removing the SSR (Universal) support because of the raising issues.
- Will be revisiting SSR support properly in April.
## 1.2.1
- moved @angular/platform-server to peer-dependencies
## 1.2.0
- minor fixes
- fixed [#27](https://github.com/AhsanAyaz/ngx-device-detector/issues/27).
## 1.1.7
- minor fixes
## 1.1.6
- fixes. Readme Updated with Angular Universal dependency info
## 1.1.5
- fixes #22, #23
## 1.1.4
- fixes
- Support added for Angular Universal
## 1.1.3
- fixes
## 1.1.2
- fixes
## 1.1.1
- fixes
## 1.1.0 **(contains breaking changes)**
- Added official support to Angular5
- The package name has been changed to `ngx-device-detector`
- Renamed the Service from `Ng2DeviceService` to `DeviceDetectorService`
- Renamed the Module from `Ng2DeviceDetector` to `DeviceDetectorModule`
## 1.0.0 **(contains breaking changes)**
- Renamed the Service from `Device` to `Ng2DeviceService`
- Renamed the Module from `Ng2DeviceDetector` to `Ng2DeviceDetectorModule`
- Import has changed from `imports: [Ng2DeviceDetectorModule]` to `imports: [Ng2DeviceDetectorModule.forRoot()]`