On other platforms it just call getUniqueId() in this module. On iOS it uses the DeviceUID uid identifier. This synchronizes uniqueId with IDFV or sets new a random string. Huawei - AppGallery Review Guidelines see "permanent device identifier" and "obtaining user consent". android: Google Play policy, see "persistent device identifiers".android: Prior to Oreo, this id ( ANDROID_ID) will always be the same once you set up your phone.It can be changed only in case someone manually override values in Keychain/NSUserDefaults or if Apple would change Keychain and NSUserDefaults implementations.īeware: The IDFV is calculated using your bundle identifier and thus will be different in app extensions. You can carefully consider it a persistent, cross-install unique ID. So it would stay the same even if you delete the app or reset IDFV. Once UID is generated it is stored in iOS Keychain and NSUserDefaults. iOS: This is IDFV or a random string if IDFV is unavaliable.Import DeviceInfo from 'react-native-device-info' // or ES6+ destructured imports import ) Notes Use upgrade-helper tool on the internet if needed. Upgrade to modern versions of react-native. No support is offered for these previous react-native versions but you may refer to older versions of this README if you like. Previous versions need to do manual linking. For this reason automatic linking was implemented, and it should be used in your project.Īutomatic linking is supported for all platforms (even windows on React native >= 0.63!) Linking in native modules is a frequent source of trouble for new react-native developers, resulting in errors like "RNDeviceInfo is null" etc. If you need non-AndroidX you will need to use the jetifier package in reverse mode, documentation available with that package. SupportV4Version = '1.0.0 ' // Do not specify if using old libraries, specify '1.0.0' or similar for androidx.legacy:legacy-support-v4 dependency MediaCompatVersion = '1.0.1 ' // Do not specify if using old libraries, specify '1.0.1' or similar for dia:media dependency SupportLibVersion = '1.0.2 ' // Use '28.0.0' or don't specify for old libraries, '1.0.2' or similar for AndroidX TargetSdkVersion = "28 " // default: 28 (28 is required for AndroidX) GooglePlayServicesIidVersion = "16.0.1 " //include as needed:ĬompileSdkVersion = "28 " // default: 28 (28 is required for AndroidX) GooglePlayServicesIidVersion = "17.0.0 " // default: "17.0.0" - AndroidX //Option 3 (legacy GooglePlay dependency before AndroidX): dependency versions We have 3 options for deviceId:įirebaseIidVersion = "19.0.1 " // default: "19.0.1" //Option 2 (legacy GooglePlay dependency but using AndroidX):
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |