infobip / mobile-messaging-react-native-plugin

Mobile Messaging SDK plugin for React Native projects
28 stars 5 forks source link

Back physically button Android #80

Open Eduardoleor opened 2 weeks ago

Eduardoleor commented 2 weeks ago

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 commented 2 weeks ago

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 commented 1 week ago

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.

https://github.com/user-attachments/assets/b941e218-7a2c-4128-a9d8-2d415896ee5f

Could you help me solve this problem?