8.1.5 (2021-07-30)
8.1.4 (2021-07-21)
- Updated getUsedMemory to pull from ActivityManager debug memory info (ed99cd3)
8.1.3 (2021-05-05)
8.1.2 (2021-04-18)
8.1.1 (2021-04-18)
8.1.0 (2021-04-12)
8.0.8 (2021-03-31)
8.0.7 (2021-03-24)
- fix(ios, deviceType): support iOS-compiled app running on macOS (#1181, thanks @user-none!)
- fix(ios, isEmulator): correct emulator detection for arm64 simulator (#1180, thanks @Arkkeeper!)
- fix: remove husky from postinstall entirely
Apparently there is no way to conditionally run postinstall, and while we really want husky for contributors here, we must not fail on install of library consumers (and we don't want to install husky for everyone, even though it's a great package)
- fix: prefix husky install with with npm or package install fails
Husky is just a pre-commit hook package we use for QA, quite unfortunate that as we ported to the next major version in v8.0.3 I broke the install for everyone. Apologies! @mikehardy
- fix(types, PowerState): use Partial vs union with '{}' (#1175, thanks @vvscode!)
- fix(hasNotch): fix missing Pixel 4a model name in devicesWithNotch.ts (@zarvedan)
- BREAKING: Fix the exporting and importing of typings in ES6 build module (#1164, thanks @diego-antonelli!)
Note, if you use typescript, this requires a minimum version of typescript 3.8 This change was inadvertently released without realizing it was a breaking change, apologies. It is close enough to the 8.0.0 release that it will stand here though, without bumping to 9.0.0
- BREAKING(ios, xcode): Xcode 12 required with #1137. Use 7.3.2 if you must use outdated Xcode (#1151)
- feat(android, hms/gms): add ability to run without play services (#1156, thanks @saghul!)
7.4.0 was inadvertently breaking. I hadn't realized any iOS developers failed to update Xcode to stable after an Xcode release. For a variety of reasons, you should always keep Xcode up to date, nevertheless dropping Xcode 11 support is breaking. Update your Xcode or use 7.3.2.
- feat(android, install referrer): add ability to run without install referrer (#1153, thanks @saghul!)
- BREAKING feat(ios, catalyst): added DeviceTypeDesktop to getDeviceType() (#1137, thanks @exotexot!)
- fix(android, install referrer): remove old install referrer api (#1150 @nicoburns!)
- chore(ci, example): add ios/android CI, lint CI, de-lint project (@mikehardy)
- fix: remove deprecated way of retrieving INSTALL_REFERRER on Android (#965) (@Minishlink)
- fix(android, test): drop mockito to 3.6.28 to fix android test build break (thanks @jamsch!)
- feat(android, build): add ability to specify firebase bill of materials for iid versioning (#1133, thanks @Dimon70007!)
- fix(notch): add Redmi 9 to hasNotch list (#1140, thanks @esgudnason!)
- test: Adding more tests and refactoring some getters (#1136, thanks @schie!)
- chore: dependency updates (@mikehardy)
- fix(test, mocks): extra comma syntax error in mock definition (#1134, thanks @DorianGrey!)
- feat(windows): implement additional methods (#1122, thanks @jaimecbernardo!)
- feat(windows): port C# Windows implementation to C++ (#1113, thanks @jaimecbernardo!)
- feat(test, mocks): adding rest of jest mocks (#1132, thanks @schie!)
- fix(ios, keychain): change keychain access control to non-deprecated value (#1131, thanks @dmitry-bluescape!)
- feat(hasHms): added
hasHms
to indicate if Android device supports Huawei Mobile Services. (#1129, thanks @craig95!) - feat(hasGms): added
hasGms
to indicate if Android device supports Google Mobile Services. (#1129, thanks @craig95!)
This release includes a truly enormous amount of testing and internal refactoring work that has made the module much easier to maintain, all courtesy of @schie in the form of a pile of PRs implementing the same. Thank you, Dustin Schie!
- fix(windows): remove use of Object.fromEntries (#1110, thanks @jaimecbernardo!)
- fix(hasNotch): fix missing Redmi 7 and Pixel 3a model name in devicesWithNotch.ts (#1107, thanks @tronin!)
- fix(hasNotch): fix missing Samsung A21s model in devicesWithNotch (#1106, thanks @djhr!)
- BREAKING CHANGE: Increase iOS minimum to iOS 10. Stay on 6.x if you need to support iOS 9
- fix(iOS): supporting
getFontScale
in App Extensions (#1097, thanks @schie!) - feat(mocks): add default set of mocks (#1102, thanks @schie!)
The change to iOS10 minimum was required to fix getFontScale for App Extensions react-native 0.63 already requires iOS 10 minimum, so this is in harmony with the ecosystem
- feat(hooks): add useIsHeadphonesConnected hook (#1084, thanks again @schie!)
- feat(hooks): add useManufacturer hook (#1083, thanks @schie!)
- fix(types): add returnType to getPowerState (#1082, thanks @ferdicus!)
- fix(android): fix swapped data/root values in getFreeDiskStorageSync (#1077, thanks @violetchow2611!)
- fix: Xcode 12 compatibility (thanks @radko93! #1075)
- fix(windows): Targetplatform change for cpp apps to use this module (#1072, thanks @tero-paananen!)
- Added the 2nd generation iPhone SE to the deviceNamesByCode list (#1068, thanks @steve-lorenz!)
-
BREAKING CHANGE(android, storage): Replace
getTotalDiskCapacity
andgetFreeDiskStorage
implementations, original implementations aregetTotalDiskCapacityOld
andgetFreeDiskStorageOld
. New implementation addsRoot
andData
file systems. Old implementations are deprecated, they use deprecated Android APIs, and they will disappear in a future version. This should be a positive change as the resulting calculation should match Android settings storage calculation, but the old API is there if you need it, and you can open an issue to discuss if necessary. (#1054, thanks @gabriel-franzoni-pier!) -
BREAKING CHANGE(windows, vNext): The windows support has been ported from C# (react-native-windows <= 0.59) to C++ (react-native-windows >= 0.59). This drops support for react-native-windows lower than 0.59. The port was developed and tested against react-native-windows 0.62.5. (1059#, thanks @tero-paananen!). The getTotalMemory APIs were dropped in the process (it appears react-native-windows vNext does not support them)
- fix(hasNotch): add devices Blackview A30 (#1058, thanks @alexnaiman!)
- fix(android): fix missing Huawei P30 model name in devicesWithNotch.ts (@tronin)
- fix(ios): fix WkWebView crash from parallel getUserAgent calls (#1050, thanks @RojoHub!)
- fix(types): import LocationProviderInfo type, export result types (#1041, thanks @mikehardy)
- fix: power connection and power save events were not triggering correctly (#1042, thanks @mikehardy)
- fix(ios): correctly calculate ios low battery threshold (#1039, thanks @mikehardy)
- fix: react-native-web fix TypeError and battery (#1024) (thanks @jamesst20!)
I want to say I especially appreciate the help on the react-native-web implementation. Anyone that wants to help this library work better for react-native-web is more than welcome! I (@mikehardy, the currently active maintainer here) do not use react-native-web so I need all the help I can get. Cheers!
- feat: Added syncUniqueId() for iOS devices (#922) (thanks @Bardiamist!)
- fix: iOS check HFP in addition to A2DP in isHeadphonesConnected (thanks @CaptainJeff!)
- fix: Android - build issues when building for electron (thanks @rcjmk10!)
- chore:
yarn upgrade --latest
- fix: Android - safely handle PackageManager death in InstallReferrerClient (@mikehardy)
- chore: upgrade gradle + gradle-plugin
- chore: update all javascript dependencies
- chore: refresh-example to react-native 0.62.2
- chore: de-lint
- fix: getModel on iOS now returns generic device type (e.g. "iPhone") if the specific model is unrecognized (@TheAlmightyBob)
- fix: memoization of static boolean return values (@jmheik)
- fix: add mac catalyst compatibility to getCarrier (#973) (thanks @robertying!)
- fix: add wider exception handling in install referrer (thanks @jmunozDevsu!)
- fix: add Redmi Note 9 to hasNotch list (#959) (thanks @euharrison!)
- fix: avoid crash if missing InstallReferrer permission on Android (#955) (@mikehardy)
- fix: RNDeviceInfo_powerStateDidChange event argument type error (@mikehardy)
- feat: add getInstallerPackageName for android (#912) (thanks @codecog!)
- fix: switch to InstallReferrer API (#947) (thanks @skantus!)
- feat: add Huawei P Smart devices to notch list (#945) (thanks @sanborN!)
- fix: only reject once from DeviceCheck APIs (fixes Simulator crash) (@mikehardy)
- fix: remove yarn as a requirement (#943) (thanks @gie3d!)
- chore: update dependencies (@mikehardy)
- fix: Fix getDeviceToken crash on IOS simulator (#929) (thanks @Taym95!)
- feat + fix: tabbed example, improved types, efficient Platform usage (thanks @zoontek!)
- feat: Added getDeviceToken() using DeviceCheck API on iOS 11.0+ (thanks @AntoineDoubovetzky!)
- fix: hasNotch correctly matches Xiaomi Mi 9 (thanks @BogdanTaranenko!)
- docs: fix upgrade links in README TOC (thanks @Simek!)
- docs: fix type in README useIsEmulator example (thanks @zusinShinpei!)
- types: fix Flow types (thanks @grit96!)
- feat: Added web support for isCameraPresent, isLocationEnabled, isAirplaneMode, getBaseOs, getFreeDiskStorage, getMaxMemory, getTotalDiskCapacity, getTotalMemory, getUsedMemory and battery/charging-related APIs. (thanks @robertherber!)
- feat: isHeadphonesConnected() / isHeadphonesConnectedSync() (thanks @chakrihacker!)
This release allows you to use the firebase iid library for unique ids - it's the backwards-compatible but future direction of unique ids on Android, you should move to it by using firebaseIidVersion in your android/build.gradle file ext{} block to specify the library version
- feat: android native interoperability - determine isTablet from android native (thanks @andresesfm!)
- feat: android unique ID forward-ported to firebase, w/great backwards-compatibility (thanks @andresesfm and Andres Aguilar!)
- re-package of 5.0.0 without change except delete accidental inclusion of example/android/app/build
- BREAKING: (from 4.0.2-rc.1) getDeviceType is constant now - no need for getDeviceTypeSync
This is a tiny breaking change, easy to adopt:
- getDeviceTypeSync --> getDeviceType
getDeviceType.then(type => {});
-->let type = getDeviceType();
- feat: Hooks! Add
useBatteryLevel()
,useBatteryLevelIsLow()
,usePowerState
methods (thanks @magrinj!) - fix: iOS use CFBundleName if CFBundleDisplayName null (Fixes #846, thanks @rizwankce!)
- chore: add support for 2019 iPads models in 'model' mapping (thanks Edward Wong!)
- chore: add support for motorola one vision in hasNotch (thanks @euharrison!)
- docs(README): Fixed link in TOC (thanks @martinvol!)
- docs(README): Fixed example code hasNotch() - constant, no Promise (thanks @cereme!)
- docs(README): Fixed example code getDeviceId() - constant, no Promise (thanks @adambutler!)
- docs(README): Fixed getReadableVersion() sub-API references (thanks @djorkaeffalexandre!)
- chore: yarn upgrade --latest to update dependencies (@mikehardy)
- BREAKING: getDeviceType converted to a constant (minor breaking change, but will release as 5.0.0 just in case)
- released from 4.0.1-rc.1 without change
- docs(README): link to v3->v4 migraiton guide
- docs(CHANGELOG): entries for rest of 4.0.1-beta series
- fix: iOS getBundleId incorrectly returning buildId vs bundleId
- fix: hasNotch correctly matches Nokia 6.1 Plus
- fix: iOS isTablet was always returning false
- fix: hasSystemFeatureSync incorrectly returned Promise
- fix: hasSystemFeatureSync incorrectly returning a Promise on iOS @mikehardy
- fix: isTablet on iOS always returning false @mikehardy
- fix: iOS getModel always returned generics @mikehardy
- BREAKING CHANGE: rename getCameraPresence to isCameraPresent to match other booleans (#810) @mikehardy
- fix: support Wifi IP address on Apple TV (react-native-device-info#825) @gcesarmza
- fix: android use googlePlayServicesIidVersion if available (react-native-device-info#804 / Fixes #802) @mikehardy
- BREAKING CHANGE: DeviceType: Renamed
Unknown
tounknown
for consistency across the project (@johan-dutoit) - fix: typescript conversion mopup (@johan-dutoit)
This was almost working but had some issues so was revoked on npmjs.com
- Conversion to typescript (react-native-device-info#799) thanks @johan-dutoit!
- fix: chain getReadableVersion APIs to JS vs native, protects web from native calls (Fixes #796)
- chore: add support for 2019 iPhone models in 'hasNotch' mapping
- fix: fix iOS crash in getModel for unknown modules (react-native-device-info#791) thanks @rbscott!
The above PR also included a refresh/update of the iOS model list and improved getModel caching - a thorough job
- fix: fix react-native-windows v2->v3 migration (react-native-device-info#787) thanks @acoates-ms!
- feat: add power functionality in Android to match iOS (react-native-device-info#775) thanks @Johan-dutoit!
- release: promoted release from 3.0.0-rc.5 without change
- fix: various fixes similar to / prompted by #771 / #768 / #769
- fix: getSystemName() returns value on ios+android #771 thanks @cmpayc!
- fix: getUniqueId() only returned value 1st call #768 thanks @tamhv!
- fix: getModel() not working on iOS #769 Thanks @rnnyrk!
- feat: memoize static return values for performance
- fix: TypeScript getPowerState() return type was Object instaed of PowerState interface
- fix: TypeScript definition file was missing getPhoneNumberSync()
- Added a sync version of each API call, in practice it is very difficult to consume async APIs during app bootstrap and device info is frequently fundamental to app startup behavior. This still preserves the change away from paying the entire cost of information retrieval at startup - now you will only pay for exactly what you need.
- fix incorrect use of macos for API selection vs ios in rc.3, rendering ios builds mostly useless
- verified last of the v2->v3 discrepancies, this is a release candidate now
- fix some real android device v2->v3 discrepancies
- BREAKING CHANGE: more capitalization changes for API calls to standardize (see below)
- BREAKING CHANGE: more return value changes to standardize return values (see below)
- feat: you no longer have to be careful with platform-specific APIs, all APIs will work, just returning standard "unknown" return values (see above breaking change, and example App.js usage)
- fix all emulator/simulator v2->v3 discrepancies
Each BREAKING CHANGE contains the required information to migrate. The example App.js shows sample usage.
- BREAKING CHANGE: Every API call returns a Promise now (and thus no more Android constructor with async boolean argument)
- This was required to improve module load speed, handle dynamic values, and release the main queue for iOS
- BREAKING CHANGE: Every API call with acronyms ('getIP', 'getABI' etc follows pure camel-case now, e.g. 'getIp', 'getAbi')
- This naming style is a consensus standard. Previously APIs here were half one way half the other. Now they are consistent
- isAirPlaneMode -> isAirplaneMode
- getIPAddress -> getIpAddress
- getMACAddress -> getMACAddress
- getAPILevel -> getApiLevel
- getBaseOS -> getBaseOs
- getInstanceID -> getInstanceId
- getUniqueID -> getUniqueId
- supportedABIs -> supportedAbis
- BREAKING CHANGE: all events prefixed with 'RNDeviceInfo_' (react-native-device-info#620)
- This is required as event names are a global namespace and collisions are inevitable otherwise
- powerStateDidChange -> RNDeviceInfo_powerStateDidChange
- batteryLevelDidChange -> RNDeviceInfo_batteryLevelDidChange
- batteryLevelIsLow -> RNDeviceInfo_batteryLevelIsLow
- BREAKING CHANGE: Android
getBuildNumber
returns string like iOS (react-native-device-info#648) - BREAKING CHANGE: remove is24Hour, getTimezone, isAutoTimeZone and isAutoDateAndTime, getDeviceLocale, getDeviceCountry, getPreferredLocales
- This was the result of a survey. It removes API duplication in the react-native-community modules
- Related PR: zoontek/react-native-localize#65
- Use
yarn add https://github.com/mikehardy/react-native-localize.git#e062f0d2dc3171dc18fdb7b7139d347ad03933dc
to maintain isAutoTimeZone + isAutoDateAndTime until merged
- BREAKING CHANGE: iOS switch deprecated WebView for WebKit / getUserAgent returns Promise (react-native-device-info#757)
- The change from WebView to WebKit was required as the API is being removed from the iOS platform
- BREAKING CHANGE: if an API is platform-specific, all non-implementing platforms will return standard values of -1, false, or 'unknown' depending on return type
- This was how most APIs behaved before but it was not 100% - some returned null or empty string before
- getPhoneNumber sometimes returned null, now it will be 'unknown' if not known
- deprecated: IP-address-related methods deprecated - use @react-native-community/netinfo or react-native-network-info or react-native-carrier-info
- feat: all APIs are now restricted in Javascirpt to the platforms they have full implementations on so the web polyfill is up to date
- feat: 'getAndroidId' on Android returns android.provider.Settings.Secure.ANDROID_ID, read platform docs for usage
- feat:
getUsedMemory
(react-native-device-info#356) - feat: getDeviceName() without Bluetooth permission on Android (react-native-device-info#735)
- feat: TurboModule support (react-native-device-info#745) for these purposes (zoontek/react-native-localize#65)
- feat: allow for destructured ES6 imports (react-native-device-info#727)
- feat: update gradle, add react-native devDependency and build.gradle reference to enhance module developer experience
- fix: remove unnecessary gradle depencies (react-native-device-info#746)
- chore: de-linted all Java code, all Markdown
- fix: load module async by default with option to load sync (react-native-device-info#741)
- fix: add Huawei P30 devices to isNothc list (react-native-device-info#734)
- feat: AndroidX support (backwards/forwards compatible) (react-native-device-info#733)
- fix: isTablet() Android using Google-recommended / robust style (react-native-device-info#730)
- fix: re-fix crash PR #714, API level should be 24 (react-native-device-info#715)
- fix: crash on android api level less than 23 (react-native-device-info#714)
- feat: sync some methods from flutter (react-native-device-info#711)
- fix: additional checking in simulation method (react-native-device-info#710)
- docs(README): Add detail to ios getUniqueID() docs (react-native-device-info#707)
- fix: add missing devices to devices with notch list (react-native-device-info#702)
- build(Android): constrain play services dependency to pre-AndroidX 16.1.0 (react-native-device-info#693)
- fix(Android): Avoid NullpointerException on install referer listener (react-native-device-info#685)
- perf(Android): getConstants() optionally loaded in thread, speedup for most, init MainApplication with RNDeviceInfo(true) (react-native-device-info#680)
- fix: Add Xiaomi Redmi Note 7 to devicesWithNotch list (react-native-device-info#682)
- fix: adding conditions for tvOS location providers (react-native-device-info#678)
- docs: refresh example app and fix it so it works with tvOS
- docs: alter API Chart in README.md - isAutoDateAndTime and isAutoTimeZone return Promise (react-native-device-info#677)
- fix: checking for tvOS before attempting to get
isBatteryMonitoringEnabled
flag as tvOS doesn't support it (react-native-device-info#673) - types: make the typescript location / power returns specific (react-native-device-info#669)
- chore: move ios device model dictionary from native to javascript (react-native-device-info#670)
- fix:
getFreeDiskStorage()
to useStatFs
methods that returnlong
instead ofint
(which are now deprecated) (react-native-device-info#672)
- breaking: no functional change from 1.8.0, but isLocationEnabled requires minCompileSdk 28
- feat: Add
isLocationEnabled()
,getAvailableLocationProviders()
methods (react-native-device-info#664)
- feat: Add
getCameraPresence()
method (react-native-device-info#474)
- fix: added v to tag name in podspec (react-native-device-info#660)
- docs: Update README.md to have correct Podspec name (react-native-device-info#656)
- fix: fix building issue on tvOS / headers on iOS (react-native-device-info#652)
- chore: fix pointer types in iOS build (react-native-device-info#649)
- feat: implement hasSystemFeature() method for Android devices (react-native-device-info#646)
- chore: Update deviceinfo.js entry for xioami mi 8 lite (react-native-device-info#644)
- feat: Add
getBuildId
method to gets build number of the operating system. (react-native-device-info#640)
- chore: Add Xiaomi Mi A2 Lite to devices with notch (react-native-device-info#634)
- feat: Throw error if native module is null w/steps to help fix (react-native-device-info#630)
- fix: Use
RCTSharedApplication
so compile works for ios app extensions (react-native-device-info#408) - chore: Add 3rd generation iPad pro to device/model list (react-native-device-info#618)
- feat: Support
getUserAgent()
on old androids (API level <= 16) (react-native-device-info#545) - chore: Add Huweai INE-LX1 to devices with notch (react-native-device-info#624)
This is existing policy but is worth mentioning: The list with device names (returned by getModel()
) is maintained by the community and could lag new devices. It is recommended to use getDeviceId()
since it's more reliable and always up-to-date with new iOS devices. We do accept pull requests that add new iOS devices to the list with device names
- fix: repair flow types from #436 - 'Object' vs 'object'
- feat: add battery monitoring and detailed power state getter (react-native-device-info#436)
- feat: Add support for preferred languages function (react-native-device-info#610)
- feat: Support 'dom' Platform.OS for react-native-dom (react-native-device-info#406)
- feat: Add support for jest snapshot testing (react-native-device-info#375)
- fix: Use API-specific permissions to get phone number (react-native-device-info#269)
- fix: Add OnePlus A6010 to devicesWithNothc list (react-native-device-info#604)
- fix: use reactContext vs getApplicationContext() (react-native-device-info#382)
- fix: dynamic reference path on windows depending on environment (react-native-device-info#608)
- Add
supportedABIs()
(react-native-device-info#598)
- fix: Add Nokia 7.1 to devicesWithNotch list (react-native-device-info#597)
- First major version, features (and bugs) copied from 0.29.1
- Fix lint errors (library dependences, ignore permissions) (react-native-device-info#590)
On March 12 2019, this repository was moved from https://github.com/rebeccahughes/react-native-device-info to https://github.com/react-native-community/react-native-device-info
- Add
isAutoDateAndTime()
andisAutoTimeZone()
(react-native-device-info#583)
- Add 'POCOPHONE F1' to list of notch devices (react-native-device-info#584)
- Updated Android SDK to version 28 (react-native-device-info#548)
- Enabled battery monitoring mode to get actual battery data (react-native-device-info#404)
- Added
isBatteryCharging()
(react-native-device-info#514)
- Use BigInteger to avoid overflow in Disk related functions (react-native-device-info#587)
- Fix hasNotch() support for LG phones (react-native-device-info#573)
- Fixed getDeviceType method (react-native-device-info#571)
- Added Huawei P20 Lite to notch devices (react-native-device-info#568)
- Added OnePlus 6T to notch devices (react-native-device-info#563)
- Added
getDeviceType()
and used it inisTablet()
(react-native-device-info#560)
- Added Google Pixel 3XL to notch devices (react-native-device-info#535)
- Added
isAirPlaneMode()
(react-native-device-info#524) - Compare
hasNotch()
devices with lowercase (react-native-device-info#537) - Added several devices to
hasNotch()
(#533, #549, #550)
- Support React Native Windows 0.57, minimal version is now 10.0.14393 for the target platform
- Update typescript definitions (react-native-device-info#498)
- Update build.gradle to remove compile warning (react-native-device-info#520)
- Added
isLandscape()
(react-native-device-info#504)
- Add
hasNotch()
(react-native-device-info#500)
- Support new models (XR, XS, XS Max) and iPad 6th Gen (react-native-device-info#499)
- Fix typescript declaration export (react-native-device-info#478)
- Shrank the npm package size (react-native-device-info#477)
- Fixed
eslint-plugin-import
error (react-native-device-info#466)
- Fixed Android build error introduced in 0.22.1 (react-native-device-info#460)
- Fix deprecated code on Android in the following methods (react-native-device-info#426)
- getDeviceCountry
- getDeviceLocale
- Add support for
getIpAddress
andgetMacAddress
on iOS (https://github.com/react-native-community/react-native-device-info/commit/41735bd0b2efe1f626afc066604f27073acb9d4c)
- Rolled back the Pod change made in 0.21.1
- Move back the podspec file to the root directory (react-native-device-info#376)
- Moved the IOS code to an ios/ directory (react-native-device-info#374)
- Fix getBatteryLevel() for tvOS (always return 1) (react-native-device-info#363)
- Remove deprecated React pod dependency (react-native-device-info#361)
- Add more gradle configuration properties
compileSdkVersion
,buildToolsVersion
,targetSdkVersion
(react-native-device-info#343)
- Made the following methods compatible with UWP: (react-native-device-info#345)
getBatteryLevel()
getFirstIntallTime()
getIPAddress()
getMaxMemory()
isPinOrFingerprintSet()
- Add
getInstallReferrer
(react-native-device-info#344)
- Add
getBatteryLevel
(react-native-device-info#359)
- Fix
getMACAddress
for Android > 6 (react-native-device-info#349)
- Fix production build crash on Android introduced in #313
- Enhance
isTablet()
for android by checking display density (react-native-device-info#313) - Changed iOS target deployment from 9.0 to 8.0 for broader device support (react-native-device-info#19)
- Fix bad import for web polyfill
- Add an empty polyfill for
react-native-web
users (react-native-device-info#339)
- Add the
googlePlayServicesVersion
Gradle build config that allows you to set the Play Services version from the root-project (react-native-device-info#333)
- Fix crash on iOS: prevent insertion of nil values in the dictionary (react-native-device-info#328)
- Fix crash on
getFreeDiskStorage
andgetTotalDiskCapacity
from invalid filesystem path (react-native-device-info#320)
- Fix Android compatibility for
getFreeDiskStorage
andgetTotalDiskCapacity
(react-native-device-info#319)
- Add
getFontScale
(react-native-device-info#278) - Add
getFreeDiskStorage
andgetTotalDiskCapacity
(react-native-device-info#302) - Fix missing flow definition for
getApplicationName
- Fix tvOS support (react-native-device-info#283)
- Introduced
getApplicationName
to see the name of the app both on ios, android and win - Added
getTotalMemory
andgetMaxMemory
(react-native-device-info#289) - Fix iOS undefined native module error (react-native-device-info#276)
- Fix crash on
getUserAgent
when Webview is not installed (react-native-device-info#273)
- Add
getCarrier
(react-native-device-info#261) - Disable
isPinOrFingerprintSet
for tvOS (react-native-device-info#270) - Add
is24Hour
(react-native-device-info#265) - Remove unused windows dependency (react-native-device-info#263)
- Add missing typescript definitions (react-native-device-info#254)
- Make play-services optional (react-native-device-info#226)
- Critical fix on WIFI STATE (react-native-device-info#249)
- Get real WebView UserAgent on Android (react-native-device-info#207)
- Add DeviceUID.h to public headers (react-native-device-info#217)
- Add
getPhoneNumber
(react-native-device-info#174) - Fix typescript definitions (react-native-device-info#221)
- Add
getFirstInstallTime
andgetLastUpdateTime
(react-native-device-info#222) - Added version check and permission to work with Android API >= 16 (react-native-device-info#225)
- Added device detection even when in an iOS emulator (react-native-device-info#224)
- Add support for new iPhone, iPad, and Apple TV models (react-native-device-info#230)
- Add android only
getAPILevel
method (react-native-device-info#232) - Add Android support for serial number, IP, and MAC address (react-native-device-info#150)
- Add tvOS support (react-native-device-info#235)
- Add flow types
- Fix getCurrentActivity() null crash in Android (react-native-device-info#247)
- Add support for RN > 0.47
- Update typescript definitions
- Add typescript definitions
- Add
isPinOrFingerprintSet
method - Add support for RN > 0.40
- Semver fix
Several bugfixes and detecting if device is a tablet
adds support for Brand information e.g. apple, htc, etc
adds support for the iPhone SE and new iPad Pro
adds support for device country and changes the iOS device name to match Apple branding
don't use destructuring
removes the default bluetooth permission
change deployment target to iOS 8
removes unnecessary peerDependencies
tweaks how device locale works on Android. If it's available it will use the toLanguageTag that is more inline with iOS. (See #14)
adds two new parameters, Device Locale and User Agent.
adds a new parameter; Device Id. On iOS this is the hardware string for the current device (e.g. "iPhone7,2"). On Android we use the BOARD field which is the name of the underlying board, e.g. "goldfish". The way that the module gets the device model on iOS has also changed to be based on the Device Id; now instead of getting a generic product family e.g. "iPhone", it will return the specific model e.g. "iPhone 6".