The Stringee communication platform makes it easy to embed high-quality interactive video, voice, SMS into webs and mobile apps.
npm install stringee-react-native
$ npx expo prebuild
stringee-react-native by running:
$ npm install stringee-react-native --save
ios directory.
pod init.
platform :ios, '8.0'
target '' do
node_modules_path = '../node_modules'
pod 'yoga', path: "#{node_modules_path}/react-native/ReactCommon/yoga/yoga.podspec"
pod 'React', path: "#{node_modules_path}/react-native", :subspecs => ['DevSupport', 'RCTNetwork']
pod 'RNStringee', path: "#{node_modules_path}/stringee-react-native/ios"
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
`
4. Now run, pod install
5. Open XCode
6. Open file in XCode. This file can be found in the ios folder of your React Native project.
7. In the "Build Settings" tab -> "Other linker flags" add "$(inherited)" flag.
8. In the "Build Settings" tab -> "Enable bitcode" select "NO".
9. Right-click the information property list file (Info.plist) and select Open As -> Source Code.
10. Insert the following XML snippet into the body of your file just before the final element:
`
NSCameraUsageDescription
$(PRODUCT_NAME) uses Camera
NSMicrophoneUsageDescription
$(PRODUCT_NAME) uses Microphone
`
#### Android
##### Proguard
Open up android/app/proguard-rules.pro and add following lines:
`
-dontwarn org.webrtc.**
-keep class org.webrtc.* { ; }
-keep class com.stringee.* { ; }
`
##### Permissions
The Stringee Android SDK requires some permissions from your AndroidManifest
1. Open up android/app/src/main/AndroidManifest.xml
2. Add the following lines:
`
// for internet access
// for audio access
// for camera access
// for bluetooth
`
##### Dependencies
1. Open up android/app/build.gradle
2. Add the following lines:
`
dependencies {
...
implementation 'com.android.volley:volley:..*'
...
}
``