Comment on page
Android
This page contains an overview of all relevant changes made to the Android SDK and the latest version releases
- Fix uploading videos and images cause URI exception in some cases.
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- Added support for queuing of messages of similar types & retrying of message in case of network errors.
- Added support deleting failed messages.
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- Incorrect behaviour of session error in functions that return PagingData to avoid crashes. Session error can now be handled by observing LoadState.Error from PagingDataAdapter. For further PagingData error handling please visit - https://developer.android.com/topic/libraries/architecture/paging/load-state#adapter
- Deprecated
getFilePath()
onAmityImage
,AmityFile
,AmityAudio
andAmityVideo
.
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- Added support for metadata when creating and updating image, file, audio and video message.
- Added functionality to create private community channel.
- Introduced
getUri()
forAmityImage
,AmityFile
,AmityAudio
andAmityVideo
.
- Deprecated
getFilePath()
onAmityImage
,AmityFile
,AmityAudio
andAmityVideo
.
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- Introduced membership type for
AmityChannelMember
.
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- Introduced a new function to create attachment message, supporting existing file IDs when create an attachment message.
- Deprecated AmityMessageRepository's
createImageMessage(subChannelId: String, imageUri: Uri)
function, use AmityMessageRepository'screateImageMessage(subChannelId: String, attachment: AmityMessageAttachment)
instead. - Deprecated AmityMessageRepository's
createVideoMessage(subChannelId: String, videoUri: Uri)
function, use AmityMessageRepository'screateVideoMessage(subChannelId: String, attachment: AmityMessageAttachment)
instead. - Deprecated AmityMessageRepository's
createFileMessage(subChannelId: String, fileUri: Uri)
function, use AmityMessageRepository'screateFileMessage(subChannelId: String, attachment: AmityMessageAttachment)
instead. - Deprecated AmityMessageRepository's
createAudioMessage(subChannelId: String, audioUri: Uri)
function, use AmityMessageRepository'screateAudioMessage(subChannelId: String, attachment: AmityMessageAttachment)
instead.
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- 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.
- Fix incorrect result of reaction query on Post and Comment
- Deprecated AmityVideoPlayer's
play(streamId: String, url: String)
function, use AmityVideoPlayer'splay(streamId: String)
instead.
- Obsoleted AmityStream's '
getRecordings()
function, Recorded videos must be played with AmityVideoPlayer'splay(streamId: String)
function - Obsoleted AmityStream's
getWatcherData()
function, LiveStream must be played with AmityVideoPlayer'splay(streamId: String)
function
- minSDKVersion: 21
- targetSDKVersion: 33
- 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
- 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.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Introduced
target: AmityCommentTarget
property inAmityComment
for gettingtargetId
andtargetType
related to the comment. IftargetType
is community type, the SDK will also providecreatorMember
which isAmityCommunityMember
. - Supported community users in comments for moderator role checking.
- Exposed file metadata on AmityVideo.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Added the missing
getDuration()
function to theAmityVideo
object.
- minSDKversion: 21
- targetSDKversion: 33
- 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
- Added an option to encrypt the SDK database.
- Fixed a race-condition when creating a message.
- Fixed the issue with sub-channel sorting not updating after receiving a message.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- 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.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Added option to encrypt SDK database.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Fixed the issue where the message list jumps when entering the chatroom.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- 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.
- Fixed the issue where the follower/following count wasn't constantly updated.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Introduced a new function,
stopPreview()
, inAmityStreamBroadcaster
to prevent occasional black screen issues that were happening during camera previews on Samsung devices.
- Fixed an issue with the
includeDeleted
filter on post queries.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- 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.
- minSDKversion: 21
- targetSDKversion: 33
- 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
- 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
- Fixed the incorrect result of message query by tags.
- Fixed the incorrect result of message reaction query.
- minSDKversion: 21
- targetSDKversion: 33
- 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
- Applied the ability to retrieve an array of posts by IDs in version 5.33.14.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Fixed the issue where the unread count does not sync when two devices, both using the same account, are opened simultaneously.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- This update fixes returning missing messages when specified includingTags as one of the query options.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Resolved an issue with incorrect sorting of child posts.
- Fixed an issue with the image upload queue producing inaccurate results.
- minSDKversion: 21
- targetSDKversion: 33
- 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
- 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.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- 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.
- Corrected the sorting of category queries to ensure accurate results.
- Please note that this release also includes the deprecation of several APIs. For details, please refer to Android SDK v6.10.0 Deprecation Notefor more information.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Resolved an issue where the SDK occasionally sent duplicate URL images, resulting in black images.
- minSDKVersion - 21
- targetSDKVersion - 33
- 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
- Introduced a new feature which allows users to create custom post and get users by `userIds` inside `AmityUserRepository`.
- Please note that this release also includes the deprecation of several APIs. For details, please refer to Android SDK v6.9.0 Deprecation Note for more information.