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
{{ message }}
This repository was archived by the owner on May 6, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,13 +31,13 @@ Then follow the instructions for each platform to link react-native-spokestack t
31
31
<details>
32
32
<summary>iOS details</summary>
33
33
34
+
First, set your iOS deployment target in XCode to 13.0.
35
+
34
36
### Edit Podfile
35
37
36
38
Before running `pod install`, make sure to make the following edits.
37
39
38
-
react-native-spokestack makes use of relatively new APIs only available in iOS 13+. Make sure to set your deployment target to iOS 13 at the top of your Podfile:
39
-
40
-
Also set your deployment target to 13.0 in your XCode project.
40
+
react-native-spokestack makes use of relatively new APIs only available in iOS 13+. Set the deployment target to iOS 13 at the top of your Podfile:
41
41
42
42
```ruby
43
43
platform :ios, '13.0'
@@ -51,7 +51,7 @@ target 'SpokestackExample' do
51
51
#...
52
52
```
53
53
54
-
For the time being, `use_frameworks!` does not work with Flipper, so we also need to disable Flipper. Remove any Flipper-related lines in your Podfile. In React Native 0.63.2, they look like this:
54
+
For now, `use_frameworks!` does not work with Flipper, so we also need to disable Flipper. Remove any Flipper-related lines in your Podfile. In React Native 0.63.2, they look like this:
55
55
56
56
```ruby
57
57
# X Remove or comment out these lines X
@@ -70,7 +70,7 @@ $ npx pod-install
70
70
71
71
### Edit Info.plist
72
72
73
-
Add the following to your Info.plist to enable permissions. In XCode, also ensure your iOS deployment target is set to 13.0 or higher.
73
+
Add the following to your Info.plist to enable permissions.
74
74
75
75
```xml
76
76
<key>NSMicrophoneUsageDescription</key>
@@ -157,10 +157,10 @@ Add the necessary permissions to your `AndroidManifest.xml`. The first permissio
157
157
158
158
### Request RECORD_AUDIO permission
159
159
160
-
The responsibility to request permission for RECORD_AUDIO on new devices is left to the user, as there are differing strategies for how to handle permissions.
160
+
The RECORD_AUDIO permission is special in that it must be both listed in the `AndroidManifest.xml` as well as requested at runtime. There are a couple ways to handle this (react-native-spokestack does not do this for you):
161
161
162
-
1. Add a screen to your onboarding that explains the need for the permissions used on each platform (RECORD_AUDIO on Android and Microphone and Speech Recognition on iOS). **Recommended**
163
-
2. Request the permissions only when needed. This is also a good option as it avoids asking for permission as soon as the app is launched. Avoid asking for permission with no context or without making it clear why it is needed.
162
+
1.**Recommended**Add a screen to your onboarding that explains the need for the permissions used on each platform (RECORD_AUDIO on Android and Speech Recognition on iOS). Have a look at [react-native-permissions](https://github.com/zoontek/react-native-permissions) to handle permissions in a more robust way.
163
+
2. Request the permissions only when needed, such as when a user taps on a "listen" button. Avoid asking for permission with no context or without explaining why it is needed. In other words, we do not recommend asking for permission on app launch.
164
164
165
165
While iOS will bring up permissions dialogs automatically for any permissions needed, you must do this manually in Android.
0 commit comments