Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2021.1.13f1
2021.2
2022.1
Issue ID
1380200
Regression
No
[iOS][OldInput] Touch is ignored when the application is resumed from the background
Reproduction steps:
1. Open the attached project "Case_1380200.zip"
2. Build and Deploy the Scene "SampleScene" to a device
3. Touch and hold the screen of the device with a finger
4. Minimize the application by pressing the Home button
5. Remove the finger from the screen
6. Maximize the application
7. Touch the screen in the same spot as before
8. Drag the finger around the screen, then release it
9. Observe the Xcode Console
Expected result: The Touch is correctly registered, and TouchPhase is correctly reported
Actual result: The Touch is ignored
Reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.2.2f1, 2022.1.0a15
Reproduced on:
- iPhone 6 (iOS 12.4.8)
- iPhone 7 (iOS 12.3.1)
Does not reproduce on:
- iPhone 12 Mini (iOS 14.1)
- iPhone 13 (iOS 15.0)
- VLNQA00391, Xiaomi Redmi 9A (M2006C3LG), Android 10, CPU: MediaTek Helio G25 (MT6762G), GPU: PowerVR Rogue GE8320
- VLNQA00313, Huawei Y6 Ⅱ Compact (HUAWEI LYO-L01), Android 5.1, CPU: MediaTek MT6735, GPU: Mali-T720
- ----------, Oppo Reno Z 中国版 (PCDM10), Android 11, CPU: NOT FOUND, GPU: PowerVR Rogue GM9446
- VLNQA00335, Samsung Galaxy S20+ 5G (SM-G986B), Android 10, CPU: Exynos 990, GPU: Mali-G77
Notes:
- Issue is not reproducible on devices that do not have a Home button
- Touching the screen in a different spot than the first time does not reproduce the issue
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2022.1.X):
This is expected behavior. Old input uses information querying to retrieve active inputs. When the app is suspended (going to background, etc.) script execution is suspended as well, therefore the check to see that events were canceled does not happen. To handle lifecycle events use OnApplicationPause and OnApplicationFocus.