You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Text>Note: microphone permissions may not work on iOS simulator. Also, toggling permissions from the settings menu may cause the app to crash. This is normal on iOS. Google "ios crash permission change"</Text>
113
+
<TouchableHighlight
114
+
onPress={Permissions.openSettings}>
115
+
<Textstyle={styles.text}>Open settings</Text>
116
+
</TouchableHighlight>
117
+
</View>
118
+
119
+
120
+
<Textstyle={styles['footer_'+Platform.OS]}>
121
+
Note: microphone permissions may not work on iOS simulator. Also, toggling permissions from the settings menu may cause the app to crash. This is normal on iOS. Google "ios crash permission change"
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ Promises resolve into one of these statuses
113
113
###Methods
114
114
| Method Name | Arguments | Notes
115
115
|---|---|---|
116
-
|`getPermissionStatus`|`type`| - Returns a promise with the permission status. Note: for type `location`, iOS `AuthorizedAlways` and `AuthorizedWhenInUse` both return `authorized`|
116
+
|`getPermissionStatus`|`type`| - Returns a promise with the permission status. See iOS Notes for special cases|
117
117
|`requestPermission`|`type`| - Accepts any permission type except `backgroundRefresh`. If the current status is `undetermined`, shows the permission dialog and returns a promise with the resulting status. Otherwise, immediately return a promise with the current status. See iOS Notes for special cases|
118
118
|`checkMultiplePermissions`|`[types]`| - Accepts an array of permission types and returns a promise with an object mapping permission types to statuses |
119
119
|`getPermissionTypes`|*none*| - Returns an array of valid permission types |
@@ -123,11 +123,17 @@ Promises resolve into one of these statuses
123
123
###iOS Notes
124
124
Permission type `bluetooth` represents the status of the `CBPeripheralManager`. Don't use this if only need `CBCentralManager`
125
125
126
-
`requestPermission` also accepts a second parameter for types `location` and `notification`.
127
-
-`location`: the second parameter is a string, either `always` or `whenInUse`(default).
128
-
-`notification`: the second parameter is an array with the desired alert types. Any combination of `alert`, `badge` and `sound` (default requests all three)
126
+
Permission type `location` accepts a second parameter for `requestPermission` and `getPermissionStatus`; the second parameter is a string, either `always` or `whenInUse`(default).
127
+
128
+
Permission type `notification` accepts a second parameter for `requestPermission`. The second parameter is an array with the desired alert types. Any combination of `alert`, `badge` and `sound` (default requests all three)
0 commit comments