Open enchorb opened 6 months ago
:warning: | Add or Reformat Version Info |
---|---|
:information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
It seems on Google Pixel devices the BackHandler does not work
A couple of questions:
Please answer all of them and we'll be able to investigate further
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
@cortinico To answer your questions:
By BackHandler, I'm referring to handling the Android back button. When using React Navigation on non-Pixel devices, when the hardware back button is pressed it navigates to the previous screen. On Pixel devices it just closes the app.
https://github.com/Roamer77/Android13backButtonBug (to test you can you the Android emulator or actual device). Any Pixel version works, I tested on Pixel 7 Pro API 34 & Pixel 6.
Not shown in the video, on the Android emulator pressed the hardware back button
@cortinico To answer your questions:
- By BackHandler, I'm referring to handling the Android back button. When using React Navigation on non-Pixel devices, when the hardware back button is pressed it navigates to the previous screen. On Pixel devices it just closes the app.
- https://github.com/Roamer77/Android13backButtonBug (to test you can you the Android emulator or actual device). Any Pixel version works, I tested on Pixel 7 Pro API 34 & Pixel 6.
Not shown in the video, on the Android emulator pressed the hardware back button
Screen_recording_20240704_101748.webm
I double checked on other devices. The same is happening on my app. It just closes the app and is not only tight to pixel devices. It is the android version operating it. In my case i used android version 14 to test. On Api 29 it still works so its a mix of android change and react native update.
I have used the backhandler on my device pixel 5 and face this issue still. @ImBeCiliC
Description
More detail: https://github.com/react-navigation/react-navigation/issues/11227
It seems on Google Pixel devices the BackHandler does not work
Steps to reproduce
Use back handler on Google Pixel 6+ device
React Native Version
0.74
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Roamer77/Android13backButtonBug
Screenshots and Videos
No response