Links
Comment on page

Android

This page contains an overview of all relevant changes made to the Android SDK and the latest version releases

Version 6.23.1 (2023-12-07)

Fixes

  • Fix uploading videos and images cause URI exception in some cases.

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.23.0 (2023-12-01)

New Features

  • Added support for queuing of messages of similar types & retrying of message in case of network errors.
  • Added support deleting failed messages.
  • For further information please visit Message Resynchronization.

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.22.1 (2023-11-24)

Fixes

Deprecations

  • Deprecated getFilePath() on AmityImage, AmityFile, AmityAudio and AmityVideo.

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.22.0 (2023-11-17)

New Features

  • Added support for metadata when creating and updating image, file, audio and video message.
  • Added functionality to create private community channel.
  • Introduced getUri() for AmityImage, AmityFile, AmityAudio and AmityVideo.

Deprecations

  • Deprecated getFilePath() on AmityImage, AmityFile, AmityAudio and AmityVideo.

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.21.0 (2023-11-03)

New Features

  • Introduced membership type for AmityChannelMember .

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.20.0 (2023-10-20)

New Features

  • Introduced a new function to create attachment message, supporting existing file IDs when create an attachment message.

Deprecations

  • Deprecated AmityMessageRepository's createImageMessage(subChannelId: String, imageUri: Uri) function, use AmityMessageRepository's createImageMessage(subChannelId: String, attachment: AmityMessageAttachment) instead.
  • Deprecated AmityMessageRepository's createVideoMessage(subChannelId: String, videoUri: Uri) function, use AmityMessageRepository's createVideoMessage(subChannelId: String, attachment: AmityMessageAttachment) instead.
  • Deprecated AmityMessageRepository's createFileMessage(subChannelId: String, fileUri: Uri) function, use AmityMessageRepository's createFileMessage(subChannelId: String, attachment: AmityMessageAttachment) instead.
  • Deprecated AmityMessageRepository's createAudioMessage(subChannelId: String, audioUri: Uri) function, use AmityMessageRepository's createAudioMessage(subChannelId: String, attachment: AmityMessageAttachment) instead.

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.19.0 (2023-10-06)

New Features

  • Added new feature to preview latest message sent in channel or subchannel. For more information, please visit Message Preview
  • Added a new feature for SDK to collect and view data of post interaction. For more information, please visit Post Impression.
  • Added and ability to play a livestream playback on AmityVideoPlayer for enhanced livestream playback for an improved video-watching experience.

Fixes

  • Fix incorrect result of reaction query on Post and Comment

Deprecations

  • Deprecated AmityVideoPlayer's play(streamId: String, url: String) function, use AmityVideoPlayer's play(streamId: String) instead.

Breaking Changes

  • Obsoleted AmityStream's ' getRecordings() function, Recorded videos must be played with AmityVideoPlayer's play(streamId: String) function
  • Obsoleted AmityStream's getWatcherData() function, LiveStream must be played with AmityVideoPlayer's play(streamId: String) function

Android SDK Version

  • minSDKVersion: 21
  • targetSDKVersion: 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.18.0 (2023-09-22)

Features

  • Introduced an additional parameter in message query, called aroundMessageId, to support navigating to a specific message. For more information, please visit Navigating(Jump) to a specific message.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.17.0 (2023-09-08)

Features

  • Introduced target: AmityCommentTarget property in AmityComment for getting targetId and targetType related to the comment. If targetType is community type, the SDK will also provide creatorMember which is AmityCommunityMember .
  • Supported community users in comments for moderator role checking.
  • Exposed file metadata on AmityVideo.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.16.1 (2023-09-04)

Fixes

  • Added the missing getDuration() function to the AmityVideo object.

Android SDK Version

  • minSDKversion: 21
  • targetSDKversion: 33

Compatibility:

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.16.0 (2023-08-25)

Features

  • Added an option to encrypt the SDK database.

Fixes

  • Fixed a race-condition when creating a message.
  • Fixed the issue with sub-channel sorting not updating after receiving a message.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.15.0 (2023-08-10)

Features

  • Limited PostRepository.getPosts() to exclude all deleted posts (both soft and hard deletes) not owned by the logged-in user, aligning with thisbehavioral-change-announcement.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 5.35.0 (2023-08-10)

New Features

  • Added option to encrypt SDK database.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.0
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.0.1
  • Room - 2.5.1
  • RxJava2 - 2.3.10
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.5.10
  • ​​HiveMQ mqtt client - 1.2.2
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.14.1 (2023-08-09)

Fixes

  • Fixed the issue where the message list jumps when entering the chatroom.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Media 3 - 1.1.0

Version 6.14.0 (2023-08-04)

New Features

  • Introduced the new Presence State feature in our SDK, allowing real-time synchronization of user statuses. Experience enhanced connectivity with online/offline indicators and seamless management of user presence within channels and users.
  • Supports unread mention status in user, channel, and subchannel levels. For further information, please refer to Unread Count page.
  • Introduced support for Jetpack Media3. While ExoPlayer is still compatible for those who prefer it, we strongly recommend upgrading to Jetpack Media3, as Google has discontinued ExoPlayer due to its deprecation.

Fixes

  • Fixed the issue where the follower/following count wasn't constantly updated.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.13.0 (2023-07-27)

New Features

  • Introduced a new function, stopPreview(), in AmityStreamBroadcaster to prevent occasional black screen issues that were happening during camera previews on Samsung devices.

Fixes

  • Fixed an issue with the includeDeleted filter on post queries.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.6.0-beta07 (2023-07-17)

Fixes

  • Fixed the issue of unread counts not reflecting correctly after a topic is hard deleted.
  • Fixed the issue of unread counts not being synchronized correctly after a user is removed or banned.

Android SDK Version

  • minSDKversion: 21
  • targetSDKversion: 33

Compatibility:

  • OKHTTP3: 4.9.2
  • Retrofit2: 2.9.0
  • Android Paging Data Library: 3.1.1
  • Room: 2.5.1
  • RxJava3: 3.1.5
  • Gson: 2.8.10
  • Kotlin-std-lib: 1.7.10
  • HiveMQ mqtt client: 1.3.1
  • Firebase messaging: 23.0.0
  • Firebase Iid: 21.1.0
  • Exo Player: 2.18.1

Version 6.12.0 (2023-07-14)

New Features

  • Introduced a new function to get a category by ID. For further information, please visit Get Category
  • Introduced a new function to get a file by ID. For further information, please visit Retrieve Files

Fixes

  • Fixed the incorrect result of message query by tags.
  • Fixed the incorrect result of message reaction query.

Android SDK Version

  • minSDKversion: 21
  • targetSDKversion: 33

Compatibility:

  • OKHTTP3: 4.9.2
  • Retrofit2: 2.9.0
  • Android Paging Data Library: 3.1.1
  • Room: 2.5.1
  • RxJava3: 3.1.5
  • Gson: 2.8.10
  • Kotlin-std-lib: 1.7.10
  • HiveMQ mqtt client: 1.3.1
  • Firebase messaging: 23.0.0
  • Firebase Iid: 21.1.0
  • Exo Player: 2.18.1

Version 5.33.14 (2023-07-07)

Fixes

  • Applied the ability to retrieve an array of posts by IDs in version 5.33.14.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.6.0-beta06 (2023-07-04)

Fixes

  • Fixed the issue where the unread count does not sync when two devices, both using the same account, are opened simultaneously.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.6.0-beta05 (2023-06-29)

Fixes

  • This update fixes returning missing messages when specified includingTags as one of the query options.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.6.0-beta04 (2023-06-21)

Version 6.11.0 (2023-06-29)

Fixes

  • Resolved an issue with incorrect sorting of child posts.
  • Fixed an issue with the image upload queue producing inaccurate results.

Android SDK Version

  • minSDKversion: 21
  • targetSDKversion: 33

Compatibility:

  • OKHTTP3: 4.9.2
  • Retrofit2: 2.9.0
  • Android Paging Data Library: 3.1.1
  • Room: 2.5.1
  • RxJava3: 3.1.5
  • Gson: 2.8.10
  • Kotlin-std-lib: 1.7.10
  • HiveMQ mqtt client: 1.3.1
  • Firebase messaging: 23.0.0
  • Firebase Iid: 21.1.0
  • Exo Player: 2.18.1

Version 6.6.0-beta04 (2023-06-21)

New Features

  • Introduce a new feature which now supports unread count on multiple devices. When the user logs in to two devices with the same account and uses the chat feature simultaneously, the user should see the correct update of the unread count.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.10.0 (2023-06-16)

Features

  • Introduced a new function that enables retrieval of posts by an array of IDs.
  • Implemented a new function to fetch comments using an array of IDs.

Fixes

  • Corrected the sorting of category queries to ensure accurate results.

Deprecations

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.2
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.1.1
  • Room - 2.5.1
  • RxJava3 - 3.1.5
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.7.10
  • ​​HiveMQ mqtt client - 1.3.1
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 5.33.13 (2023-06-15)

Fixes

  • Resolved an issue where the SDK occasionally sent duplicate URL images, resulting in black images.

Android SDK version

  • minSDKVersion - 21
  • targetSDKVersion - 33

Compatibility

  • OKHTTP3 - 4.9.0
  • Retrofit2 - 2.9.0
  • Android Paging Data Library - 3.0.1
  • Room - 2.4.0-alpha04
  • RxJava2 - 2.3.10
  • Gson - 2.8.10
  • Kotlin-std-lib - 1.5.10
  • ​​HiveMQ mqtt client - 1.2.2
  • Firebase messaging - 23.0.0
  • Firebase Iid - 21.1.0
  • Exo Player - 2.18.1

Version 6.9.0 (2023-06-01)

Features

  • Introduced a new feature which allows users to create custom post and get users by `userIds` inside `AmityUserRepository`.

Deprecations