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-v2$ npx expo prebuild
stringee-react-native-v2 by running:
$ npm install stringee-react-native-v2 --save
ios directory.
pod install
.xcworkspace file in XCode. This file can be found in the ios folder of your React Native project.
bash
NSCameraUsageDescription
$(PRODUCT_NAME) uses Camera
NSMicrophoneUsageDescription
$(PRODUCT_NAME) uses Microphone
`
#### Android
##### Proguard
Open up android/app/proguard-rules.pro and add following lines:
`bash
WebRTC
-keep class org.webrtc.* { ; }
-dontwarn org.webrtc.**
-keepclassmembers class org.webrtc.* { ; }
JNI
-keepclasseswithmembernames class * {
native ;
}
-keep class org.jni_zero.* { ; }
Stringee
-dontwarn com.stringee.**
-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:
`bash
android:name="android.hardware.camera"
android:required="true" />
android:name="android.hardware.camera.autofocus"
android:required="false" />
android:name="android.hardware.bluetooth"
android:required="false" />
android:name="android.hardware.bluetooth_le"
android:required="false" />
android:glEsVersion="0x00020000"
android:required="false" />
`
##### Dependencies
1. Open up android/app/build.gradle
2. Add the following lines:
`bash
dependencies {
implementation 'com.stringee.sdk.android:stringee-android-sdk:2.1.5'
implementation 'io.github.webrtc-sdk:android:137.7151.03'
implementation 'com.android.volley:volley:1.2.1'
}
``