Comments (3)
I think it's related to React Native itself.
In your AndroidManifest.xml
, try adding xmlns:tools="http://schemas.android.com/tools"
to your root tag attributes (<manifest>
) and then add this:
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
from react-native-device-info.
Did you figure this out? I suspect that it was not related to this module but rather to something else. Is that correct?
from react-native-device-info.
READ_PHONE_STATE is necessary to get the device phone number for example.
Draw over other apps is required by react-native.
Closing this issue as it's quiet old, please open a new one if you still think that we're doing something wrong.
from react-native-device-info.
Related Issues (20)
- Could not find Fiber with id "473" HOT 1
- Constant manifest is deprecated HOT 1
- Docs are not correct regaring getUniqueId HOT 2
- Android app crashing on start-up due to NullPointerException at com.android.installreferrer.api.onServiceConnected HOT 6
- [Feature] Request device date and time automatically is enabled or disabled (solved -> use react-native-localize) HOT 2
- Problem with submitting application to Google Play because of the usage of getLine1Number inside the library HOT 4
- Unable to get mobile number using getPhoneNumber() method for specific network providers HOT 1
- v10.13.0 import of `UIUserInterfaceIdiomVision` breaks Expo builds HOT 10
- Error starting expo HOT 1
- PRIVACY MANIFEST FILE FOR IOS HOT 21
- RNDeviceInfo is null on Android and react-native HOT 9
- getUniqueId() on Android returns null occasionnaly on same device HOT 1
- RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED - Android SDK 34+ HOT 2
- Need to have googlePlayServicesVersion = "21.0.1" HOT 5
- Could not get unknown property 'com' for extension 'android' of type com.android.build.gradle.LibraryExtension. HOT 1
- Get information about auto time and auto timezone HOT 1
- Components that depend on useIsHeadphonesConnected on Android don't re-render when bluethooth headphones are connected/disconnected. HOT 5
- DeviceInfo.isHeadphonesConnected() doesn't detect all ways headphones can be connected on iOS HOT 2
- NativeModule 中的 onCatalystInstanceDestroy() 已过时, 且标记为待删除 HOT 1
- Invariant Violation: `new NativeEventEmitter()` requires a non-null argument., js engine: hermes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-device-info.