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

Back physically button Android #80

Open
Eduardoleor opened this issue Oct 7, 2024 · 2 comments
Open

Back physically button Android #80

Eduardoleor opened this issue Oct 7, 2024 · 2 comments

Comments

@Eduardoleor
Copy link

After installing the library, it seems to replace the native Android navigation and pressing the physical back button closes the application instead of returning to the previous stack,

Version with the error: infobip-mobile-messaging-react-native-plugin": "^11.1.1

Testing steps: Start the application with the module installed and started, press the physical Android back button, the current result will be that the application will exit and applying for example a backHandler will not work

Expected result: When you start a screen and press the physical back button on Android, you will return to the previous screen

@ikresicc
Copy link
Contributor

ikresicc commented Oct 7, 2024

Hello @Eduardoleor,

we have just tested this on our latest plugin version, and we are not able to reproduce this behaviour.
Maybe try to update to the latest version, and double check your custom implementation.

@Eduardoleor
Copy link
Author

Hello @ikresicc , thanks for your response!

I cloned the demo repository, however I see that the issue is not from my installation, but from the plugin, currently in the video that I am going to attach I show two scenarios,

  1. When pressing the physical button of the device to go back the application closes, the correct scenario would be that when going back it returns to the previous screen
  2. When pressing the back header button it returns to the previous screen which is the correct and expected scenario, both the physical device and header buttons should go back to the previous screen or go to the navigation settings, it should not close the application.
Screen.Recording.2024-10-19.at.5.21.08.p.m.mov

Could you help me solve this problem?

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

No branches or pull requests

2 participants