-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Cannot go back to react-native from android native activity #15150
Comments
Would you mind open-sourcing this? I know a lot of other people (me included) are building the same thing, might be better to do it together instead. |
Which source do you mean? For Bambora? If so, I can produce new project with Bambora but unfortunately, I'm not able to share the source now because it is on-developing. 🙏 |
Yeah, like a |
There isn't anything obvious in your code. Can you share how you've declared both your standard RN activity and the You can also try adb to dump your activity stack and see if your RN activity is gone after your open your |
Sorry, it was my own fault. I tested with emulators and it worked fine. So I checked the device developer options and found that "Do not keep activities" is enabled. |
FYI That does not sound right. You should have been able to recreate the activity when you navigated back. "Do not keep activities" is not intended to kill the activities in the stack permanently, it is to destroy them to make sure you can recreate with the bundle arguments, saved instance state etc. https://stackoverflow.com/questions/22400859/dont-keep-activities-what-is-it-for |
I implemented android native module from Bambora SDK and displayed its native view(activity) by
getCurrentActivity().startActivity(intent);
It works like a charm but
finish()
makes whole app quit instead of going back. Here are some of my codes.So I'm sure it's not a reason from Bambora SDK and
finish()
killsNativeCardRegistrationActivity
. The whole app is killed because there is no activity inActivity Stack
.Because I'm not familiar with Java code, I'm not able to figure out what the reason is here.
Please let me know what's wrong and how I can go back to original react-native activity.
The text was updated successfully, but these errors were encountered: