Skip to content

Commit ac332ad

Browse files
neha-brahmankarphillbaker
authored andcommitted
Updated README.md for App Permission (#61)
1 parent a69f331 commit ac332ad

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,23 @@ Samsung and MeiZu's Fingerprint SDK supports most devices which system versions
6464
```
6565
compile project(':react-native-fingerprint-scanner')
6666
```
67+
68+
### App Permissions
69+
70+
Add the following permissions to their respective files:
71+
72+
In your `AndroidManifest.xml`:
73+
74+
```xml
75+
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
76+
```
77+
78+
In your `Info.plist`:
79+
80+
```xml
81+
<key>NSFaceIDUsageDescription</key>
82+
<string>$(PRODUCT_NAME) requires FaceID access to allows you quick and secure access.</string>
83+
```
6784

6885
### Extra Configuration
6986

@@ -90,14 +107,6 @@ Samsung and MeiZu's Fingerprint SDK supports most devices which system versions
90107
-dontwarn com.samsung.android.sdk.**
91108
```
92109
93-
3. Add `NSFaceIDUsageDescription` to your Info.plist to describe the reason your app uses Face ID. (see [Documentation](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW75)). Otherwise the App will crash when you start a Face ID authentication on iOS 11.3+. For example,
94-
95-
```xml
96-
<key>NSFaceIDUsageDescription</key>
97-
<string>$(PRODUCT_NAME) Authentication</string>
98-
```
99-
100-
101110
## Example
102111
103112
[Example Source Code](https://github.com/hieuvp/react-native-fingerprint-scanner/tree/master/examples)

0 commit comments

Comments
 (0)