> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Install/Update Differentiation

SDK needs support to enable the update by the user application or install the application. You need to have logic on the app side to distinguish between app *INSTALL* and *UPDATE*.

If the user was already using your application and has just updated to a new version that has MoEngage SDK, it is an update. Call the below API

<CodeGroup>
  ```Dart Dart theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import 'package:moengage_flutter/moengage_flutter.dart';
  final MoEngageFlutter _moengagePlugin = MoEngageFlutter(YOUR_Workspace_ID);
  _moengagePlugin.initialise();
  _moengagePlugin.setAppStatus(MoEAppStatus.update);
  ```
</CodeGroup>

In case it is a fresh install call the below API

<CodeGroup>
  ```Dart Dart theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import 'package:moengage_flutter/moengage_flutter.dart';
  final MoEngageFlutter _moengagePlugin = MoEngageFlutter(YOUR_Workspace_ID);
  _moengagePlugin.initialise();
  _moengagePlugin.setAppStatus(MoEAppStatus.install);
  ```
</CodeGroup>

For more information, refer to [Flutter SDK](https://github.com/moengage/Flutter-SDK).
