Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android][Android 13] Hardware back button don't work at all on physical device #11227

Closed
3 of 13 tasks
Roamer77 opened this issue Feb 16, 2023 · 14 comments
Closed
3 of 13 tasks

Comments

@Roamer77
Copy link

Current behavior

I have nativeStackNavigator with inner tabNavigator. Each screen of tabNavigator is nativeStackNavigator. The issue is hardware backButton don't work at all on Android physical device with Android 13. I have tried use simple useBackHandler hook in my app but it haven't solved problem. Every thing works nice on every device with Android OS lower than 13. I have tasted on Pixel 7, Samsung s22

Expected behavior

On physical device with OS Android 13 hardware backButton should work as expected (back to previous screen)

Reproduction

https://github.com/Roamer77/Android13backButtonBug

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-bottom-tabs
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view
  • flipper-plugin-react-navigation

Environment

"react-native": "0.70.3",
"@react-navigation/bottom-tabs": "^6.3.2",
"@react-navigation/native": "^6.0.11",
"@react-navigation/native-stack": "^6.7.0",

@github-actions
Copy link

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

  • @react-navigation/bottom-tabs (found: 6.3.2, latest: 6.5.5)
  • @react-navigation/native (found: 6.0.11, latest: 6.1.4)

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

@Navipro70
Copy link

@satya164
We have the same issue, can you please response, what may cause the problem?

@khanahtesham
Copy link

@Roamer77 I am also stuck in this issue, do u have any updates?

@fukemy
Copy link

fukemy commented Jul 4, 2023

I have tested on Android 13, backbutton make app exist, not called as navigation.pop()

@antoxa2584x
Copy link

Same here

@fukemy
Copy link

fukemy commented Jan 19, 2024

@usmanabid94
Copy link

any solution or update on this i am facing the same issue on v6 react navigation bottom tabs

@satya164
Copy link
Member

satya164 commented Mar 7, 2024

React Navigation uses BackHandler to listen to hardware back button press. If BackHandler isn't working as you expect, please open an issue in React Native repo.

@satya164 satya164 closed this as completed Mar 7, 2024
Copy link

github-actions bot commented Mar 7, 2024

Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.

@usmanabid94
Copy link

It was fixed when i switched by device somehow it was not working on google pixel device but works fine on rest of the devices.

@ronal2s
Copy link

ronal2s commented Apr 18, 2024

It was fixed when i switched by device somehow it was not working on google pixel device but works fine on rest of the devices.

I mean yes but that's not a solution, or you will ask to your users change the device to use your app?

@usmanabid94
Copy link

It was fixed when i switched by device somehow it was not working on google pixel device but works fine on rest of the devices.

I mean yes but that's not a solution, or you will ask to your users change the device to use your app?

Yes you are right it should work on all devices but i mentioned the scenario here in which i was facing the issue.Hoping for the solution on it soon from the community.

@nived-cv
Copy link

I still have the issue

@usmanabid94
Copy link

is there any update on this @satya164 @antoxa2584x @ronal2s @Roamer77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants