Android 15 edge-to-edge support on 3DSecure screen
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
Thanks again for reporting! We're tracking this internally.
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.
Hi @francescocervone - Understood! We'll try to prioritize as soon as possible.
Hi @tdchow. Is there any news about this? Thanks
@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.
@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.
Thanks @saperi22
@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.
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 |
|---|---|
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?