Skip to content

Commit

Permalink
docs: Update Flutter SDK getting started guide with Android setup ins…
Browse files Browse the repository at this point in the history
…tructions
  • Loading branch information
harinath01 committed Dec 12, 2024
1 parent ca11c58 commit 1ea4b2b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/mobile-sdk/flutter-sdk/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ TPStreamsSDK.initialize(orgCode: "YOUR_ORG_CODE");

Make sure to replace "YOUR_ORG_CODE" with your actual organization code. This code snippet should be placed at the entry point of your application (usually in the main function) to ensure proper initialization of the TPStreamsSDK.

### Android Setup

In the Android directory, extend the FlutterFragmentActivity class in your MainActivity file.

To do this, make the change in the following directory:
android/app/src/main/kotlin/com/project_name/MainActivity.kt

``` kotlin
import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterFragmentActivity(){

}
```

### Play a Video

Expand Down

0 comments on commit 1ea4b2b

Please sign in to comment.