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

# インストール/アップデートの区別

> MoEngageのappStatus APIを使用して、iOSアプリでアプリのインストールとアップデートを区別します。

アプリがすでにApp Storeで公開されている状態でMoEngageを統合する場合があるため、アプリの更新が実際の **UPDATE** なのか **INSTALL** なのかを把握する必要があります。この2つを区別するロジックを用意し、以下のメソッドを使用してSDKにその情報を伝えてください。

<CodeGroup>
  ```swift Swift wrap theme={null}
  //For Fresh Install of App
  MoEngageSDKAnalytics.sharedInstance.appStatus(.install)

  // For Existing user who has updated the app
  MoEngageSDKAnalytics.sharedInstance.appStatus(.update)
  ```

  ```objective-c Objective C theme={null}
  //For Fresh Install of App
  [[MoEngageSDKAnalytics sharedInstance]appStatus:MoEngageAppStatusInstall];

  // For Existing user who has updated the app
  [[MoEngageSDKAnalytics sharedInstance]appStatus:MoEngageAppStatusUpdate];
  ```
</CodeGroup>
