<BlockSwitcher>
<Block name="Java">

```java
Amplify.Notifications.Push.identifyUser(user,
   () -> Log.i("MyAmplifyApp", "Identified user successfully"),
    error -> Log.e("MyAmplifyApp", "Error identifying user", error)
);
```

</Block>
<Block name="Kotlin - Callbacks">

```kotlin
Amplify.Notifications.Push.identifyUser(user,
    { Log.i("MyAmplifyApp", "Identified user successfully") },
    { Log.e("MyAmplifyApp", "Error identifying user", error) }
)
```

</Block>
<Block name="Kotlin - Coroutines">

```kotlin
try {
    Amplify.Notifications.Push.identifyUser(user)
    Log.i("MyAmplifyApp", "Identified user successfully")
} catch (error: PushNotificationsException) {
    Log.e("MyAmplifyApp", "Error identifying user", error)
}
```

</Block>
<Block name="RxJava">

```java
RxAmplify.Notifications.Push.identifyuser(user).subscribe(
    () -> Log.i("MyAmplifyApp", "Identified user successfully"),
    error -> Log.e("MyAmplifyApp", "Error identifyUser user", error)
);
```

</Block>
</BlockSwitcher>