Skip to content

Avoid crash when no app can open an external link#149

Open
jim-daf wants to merge 1 commit into
92lleo:masterfrom
jim-daf:fix-external-link-crash
Open

Avoid crash when no app can open an external link#149
jim-daf wants to merge 1 commit into
92lleo:masterfrom
jim-daf:fix-external-link-crash

Conversation

@jim-daf

@jim-daf jim-daf commented Jun 5, 2026

Copy link
Copy Markdown

WebviewActivity.shouldOverrideUrlLoading opens non WhatsApp links with startActivity. On a device with no app for the link this throws ActivityNotFoundException and crashes the app.

This wraps the launch in a try/catch and shows a short toast when nothing can open the link. WhatsApp Web navigation is unchanged.

Closes #148

@92lleo

92lleo commented Jun 16, 2026

Copy link
Copy Markdown
Owner

thanks for the PR! I'll check locally, then merge and relase it with the next bump

@jim-daf

jim-daf commented Jun 16, 2026

Copy link
Copy Markdown
Author

thanks for the PR! I'll check locally, then merge and relase it with the next bump

@92lleo Great! Your welcome

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.

Crash when opening a link that no installed app can handle

2 participants