braintree_android icon indicating copy to clipboard operation
braintree_android copied to clipboard

Android 15 edge-to-edge support on 3DSecure screen

Open francescocervone opened this issue 1 year ago • 10 comments

Braintree SDK Version

5.2.0

Environment

Both

Android Version & Device

Android 15

Braintree dependencies

I tried the demo on the main's HEAD, which at the time of writing is this commit.

Describe the bug

Android 15 has forced edge to edge automatically for all activities.

The 3DSecure doesn't correctly support the Android 15 edge to edge enforcement.

We depend on Braintree 4.x and we were trying to increase our target SDK to 35 (Android 15), but we found out about this behavior.

So, since the 5.x declares Android 15 support, we decided to upgrade to Braintree 5 first.

Unfortunately though, I tried the demo version on the main's HEAD, which at the time of writing is this commit, and that screen still draws incorrectly behind the system bars.

To reproduce

  • Run a 3DSecure verification on an app targeting Android API 35
  • The 3DSecure screen is drawn behind the system bars incorrectly

Expected behavior

  • All Braintree screens handle window insets correctly in all Android versions, 15 included.

Screenshots

Screenshot_20241210_122321

francescocervone avatar Dec 10 '24 12:12 francescocervone

Thanks again for reporting! We're tracking this internally.

tdchow avatar Dec 10 '24 15:12 tdchow

Hi, just a message to help you understand the priority of this issue from our point of view.

Please keep in mind that apps have 1 year to be compliant with the Target API level requirements for Google Play apps).

Typically, that would be August 2025, but given that Google changed the frequency and dates of new SDK releases (blog), apps will need to start integrating with Android 16 too starting from Q2 2025 (I guess around April 2025).

Thanks.

francescocervone avatar Dec 12 '24 11:12 francescocervone

Hi @francescocervone - Understood! We'll try to prioritize as soon as possible.

tdchow avatar Dec 18 '24 16:12 tdchow

Hi @tdchow. Is there any news about this? Thanks

francescocervone avatar Jan 21 '25 08:01 francescocervone

@francescocervone no, we don't have any updates on this. We are trying to work with Cardinal to see when this could be made available. We'll keep you posted on any updates we have.

saperi22 avatar Jan 21 '25 23:01 saperi22

@francescocervone Our Cardinal POC mentioned that they'd be releasing a 2.2.7-7 version that supports Android 15 by the end of this month. We'll let you know once we've received the update and are ready to prioritize the upgrade work.

saperi22 avatar Jan 22 '25 21:01 saperi22

Thanks @saperi22

francescocervone avatar Jan 22 '25 21:01 francescocervone

@francescocervone we've received an update from Cardinal that the 2.2.7-7 version is available. We'll be testing this dependency for issues in the next couple weeks and if everything looks good, we'll release it.

saperi22 avatar Mar 24 '25 16:03 saperi22

https://github.com/braintree/braintree_android/pull/1282 is where the changes went it.

This will be released in our next release. There's no timeline to share.

Before After
Image Image

saperi22 avatar Mar 24 '25 23:03 saperi22

Quick question about these changes as I've just tested the update in the latest Android drop-in library too and notice the same behaviour as your screenshot - the status bar content is not visible, you might need to apply a style to the content to ensure it is visible?

jogwir avatar Apr 24 '25 02:04 jogwir