Suggestions

close search

Install stringee-flutter-plugin

  1. Download stringee-flutter-plugin here: https://github.com/stringeecom/stringee_flutter_plugin

  2. Put stringee-flutter-plugin into the same directory of your project them add the following to your pubspec.yaml file

    dependencies:
        stringee_flutter_plugin:
            git:
                url: https://github.com/stringeecom/stringee_flutter_plugin.git
  3. Install the plugin by running the following command from the project root:

    $ flutter pub get

Android

  1. Permissions

    The Stringee Android SDK requires some permissions from your AndroidManifest

    • Open up android/app/src/main/AndroidManifest.xml
    • Add the following lines:
    // for internet access
    <uses-permission android:name="android.permission.INTERNET" />
  2. Proguard

    If your project uses ProGuard, you may have to add the following settings to the ProGuard configuration file to make sure Stringee builds correctly:

    • Create file proguard-rules.pro in your app/ dir and insert inside:
    #Flutter Wrapper
    -dontwarn org.webrtc.**
    -keep class org.webrtc.** { *; }
    -keep class com.stringee.** { *; }
    • Add the following lines to /app/buidl.gradle :
    android {
        buildTypes {
            release {
                useProguard true
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
  3. Add volley library

    In your file build.gradle add this line:

    dependencies {
        implementation 'com.android.volley:volley:1.2.1'
    }

iOS

  1. From the command line run following command:

    pod install --repo-update
  2. After run cocoapods command, open project file .xcworkspace

  3. In the Build Settings tab -> Other linker flags add $(inherited) flag

  4. In the Build Settings tab -> Enable bitcode select NO

  5. In the Build Settings tab -> Allow Non-modular includes in Framework Modules select YES