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

Share to Android: After sharing once, app opened to "share" screen on startup the next few times #5097

Open
chrisbobbe opened this issue Nov 3, 2021 · 0 comments
Labels
a-Android a-share-to Sharing photos/etc. into Zulip

Comments

@chrisbobbe
Copy link
Contributor

chrisbobbe commented Nov 3, 2021

@timabbott reports that, after sharing to Zulip once, the next few times he opened the app, it had him on the "share" screen. More discussion in chat.

I just looked at the code, and I don't have a specific diagnosis yet.

I don't think it's a problem with how we're organizing our React Navigation screens; I can say more about this.

I think we're immediately navigating to the sharing screen, from some other initial screen, when we shouldn't be.

I don't know if the navigation is happening because of an "initial share" (await Sharing.readInitialSharedContent() being non-null) or because of a 'shareReceived' event.

I suspect the app might be receiving the share intent multiple times, and we should only be handling it the first time. Could it be some other flavor of 70e9ad9? The relevant code there was refactored in 1a20529; could there have been an issue there? Neither of those commits were released very recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-Android a-share-to Sharing photos/etc. into Zulip
Projects
None yet
Development

No branches or pull requests

1 participant