Suggestions

close search

Install stringee-flutter-plugin

Install stringee-plugin from pub.dev by running the following command from the project root:

$ flutter pub add stringee_plugin:^1.3.2

Check out plugin's documentation for more information.

Android

Stringee Plugin 1.3.2 requires JDK 17 and Android API 21 or later. Set compileSdk to 36 and minSdk to 21 or later in android/app/build.gradle.

Permission

The Stringee Android SDK requires some permissions from your AndroidManifest

  1. Open up android/app/src/main/AndroidManifest.xml
  2. Add the following lines:
    <!-- Internet access -->
    <uses-permission android:name="android.permission.INTERNET" />
    <!-- Media access for attachments -->
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
    <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
    <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />

    Only add and request permissions required by the attachment features in your app.

ProGuard/R8

Rules for Stringee and WebRTC are included in the plugin. Keep your application's existing minification configuration; you do not need to enable minification specifically for Stringee.

iOS

Stringee Plugin 1.3.2 requires iOS 13.0 or later. Set platform :ios, '13.0' in ios/Podfile.

  1. From the command line run following command:
    pod install --repo-update
  2. After running CocoaPods, open the generated .xcworkspace file.