Search Issue Tracker

Fixed

Fixed in 2021.3.30f1, 2022.3.7f1, 2023.1.5f1, 2023.2.0a21

Votes

1

Found in

2020.3.44f1

2021.3.17f1

2022.2.3f1

2023.1.0a26

2023.2.0a16

Issue ID

UUM-23247

Regression

No

[Android] Button can't be pressed after calling startActivityForResult with FLAG_ACTIVITY_NEW_TASK

--

-

How to reproduce:
1. Open the user’s attached “customer_sample.zip“ project ( I modified the project and you can download it here https://drive.google.com/file/d/15X-D2Oh_xRv95rfYRDysTGsOcEW5zPAE/view?usp=sharing)
2. Build and Run for Android
3. Press the “Button“ button
4. See that button can be pressed
5. Click the “Button“ button
6. Click the “run browser“ button
7. Close the window that appeared
8. Press the “Button“ button

Expected result: Button can be pressed
Actual result: Button can’t be pressed

Reproducible with: 2020.3.44f1, 2021.3.17f1, 2022.2.3f1, 2023.1.0a26

Reproducible with these devices:
Google Pixel 7 (Pixel 7), Android 13, CPU: Google Tensor G2, GPU: Mali-G710
Samsung Galaxy Z Flip3 5G (SM-F711B), Android 12, CPU: Snapdragon 888, GPU: Adreno (TM) 660
Huawei - (ELS-NX9), Android 10, CPU: HiSilicon Kirin 990 5G, GPU: Mali-G76
Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76

Couldn’t test with:
iOS (the “run browser“ button doesn’t appear after pressing the “Button” Button. Also, some errors appear in the console)

Notes:
- Button can be clicked, but can’t be pressed
- Sometimes the issue doesn’t reproduce
- Sometimes the app crashes after completing reproduction steps in 2021.3.17f1 and 2022.2.3f1
- Removing the “i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);” line from testActivity.java file fixes the issue

Comments (4)

  1. hasetokes

    Dec 15, 2023 03:46

    Regards! It was incredibly helpful in clearing up a lot of my mental confusion.

  2. UnityPovilas

    Nov 24, 2023 15:04

    Hi,
    The issue discussed in the thread (https://github.com/googleads/googleads-mobile-unity/issues/2970) has now been processed. You can follow its progress here: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-57151
    Thank you for your patience

  3. VeryHappyYoung

    Nov 13, 2023 07:20

    Hello.
    Could you please submit a bug report with a sample project so that our QA can check the exact version causing the issue?

    I could see that someone said the following in the comment on the link you shared
    "Bro, I have been using 2021.3.21f1 for the last 7 months, and when upgraded to 8.5.2 I faced the same issue."

    And if downgrading to 2022.3.6 is a way of solution, I don't think this issue is caused by this fix.

    After submitting a bug report, it would be great if you could share the link here. Thank you.

  4. Faustob64

    Nov 12, 2023 19:23

    It looks like this bug fix introduced a serious side effect. AdMob banners are not visible after app resume in 2021.3.30 and 2022.3.7 (and newer).

    See https://github.com/googleads/googleads-mobile-unity/issues/2970

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.