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

Returning to previous app #172

Open
Idbucks opened this issue Jul 6, 2023 · 1 comment
Open

Returning to previous app #172

Idbucks opened this issue Jul 6, 2023 · 1 comment

Comments

@Idbucks
Copy link

Idbucks commented Jul 6, 2023

Hello,

It's not really a problem with the package but more in the user process and I think it could be useful for some people. When they're done to share something in my app, I want to bring back the user to the previous app. It's really useful for them when you share pictures or videos from the gallery.

For android, I can use react-native-exit-app or just BackHandler. But on iOS the first package with exit everything, and BackHandler will do nothing because it was not designed for iOS.

I'm using @react-navigation/native for navigation.

If by chance someone had the problem and solved it, it would be awsome.

@pavelustenko
Copy link

Hi! I was already desperate, but finally I've just solved the problem of second instance for my application. I changed
android:launchMode to "singleInstance" for MainActivity also I set android:documentLaunchMode="never" for it.
What I've got now:
If the app is not launched the file sharing from another application starts it.
If the app is launched and in the background mode the file sharing just navigates to the screen where I deal with them.

Hope this helps

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

1 participant