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.5

Check out plugin's documentation for more information.

Android

Stringee Plugin 1.3.5 uses Stringee Android SDK 2.1.18 and 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.5 requires iOS 13.0 or later and resolves Stringee iOS SDK 2.0.2 from the CocoaPods trunk automatically; do not add a separate Stringee or WebRTC pod. In ios/Podfile, set platform :ios, '13.0' or later:

platform :ios, '13.0'
  1. From the ios directory run following command:
    pod install
  2. After running CocoaPods, open the generated .xcworkspace file.