CleverTap / clevertap-android-sdk

CleverTap Android SDK
MIT License
80 stars 74 forks source link

Inbox view in Android 15 #692

Closed radubn closed 1 day ago

radubn commented 1 day ago

Describe the bug The toolbar is under the status bar on Android 15.

To Reproduce CT Inbox has been implemented for a while and it's working just fine. However, after setting targetSdk to 35, the inbox is not properly displayed. The toolbar is under the status bar and the back button does not work, only the back gesture. On the other views in the app, after setting the targetSdk to 35, I had to have the parent CoordinatorLayout with android:fitsSystemWindows="true".

Expected behavior The Inbox title should be below the status bar and the back button accessible.

Screenshots/Logs


fun displayCleverTapInbox() {
        cleverTapDefaultInstance?.apply {
            ctNotificationInboxListener = object : CTInboxListener {
                override fun inboxDidInitialize() {
                    this@apply.showAppInbox(
                        CTInboxStyleConfig().apply {
                            navBarTitle = string(R.string.menu_user_inbox)
                            navBarColor = colorAsString(R.color.xxx)
                            navBarTitleColor = colorAsString(R.color.xxx)
                            backButtonColor = colorAsString(R.color.xxx)
                            inboxBackgroundColor = colorAsString(R.color.xxx)
                            noMessageViewText = string(R.string.inbox_default)
                            noMessageViewTextColor = colorAsString(R.color.xxx)
                        }
                    )
                }

                override fun inboxMessagesDidUpdate() {

                }
            }
            initializeInbox()
        }
    }

ct_inbox_android_15

Environment (please complete the following information):

piyush-kukadiya commented 1 day ago

@radubn We have planned release for Android 15 by end of the December. https://github.com/CleverTap/clevertap-android-sdk/pull/664

radubn commented 1 day ago

Thank you!