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

Safely handle bad URIs when tracking deep links #767

Merged
merged 2 commits into from
Apr 29, 2021
Merged

Conversation

prayansh
Copy link
Contributor

@prayansh prayansh commented Apr 28, 2021

as per #736, when tracking deep links with a bad URI it causes the app to crash. The error stems from android being able to accept a non-hierarchal URI for opening the app, but unable to parse the info using getQueryParameterNames()(eg of bad uri: wc:f94d4c5b-a28e-a516-4fd7-2bf37eca3a9e@1bridge=https%3A%2F%2Fbridge.walletconnect.org&key=ccaac40bbc0b9bd17d6ee8ff58f3ccfe3e)

This change will make it so that we do not crash the app, while tracking the deep link, but not parse any of the URI details

Closes #736

@prayansh prayansh merged commit fe636e3 into master Apr 29, 2021
@prayansh prayansh deleted the pray/fix-736 branch April 29, 2021 17:00
@prayansh prayansh mentioned this pull request May 3, 2021
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

Successfully merging this pull request may close these issues.

App crashing on launch due to failure of URI parsing
2 participants