question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

157237596: Crash after clicking on a button when there is no active browser app on a device

See original GitHub issue

If there is no active web browser app on the phone and user receives InAppMessage with a link and clicks on it then the app crashes because there is no app to handle the intent.

InAppMessaging allows me to add click listeners but it seems like they’re only supposed to act as an information that something happened. I can’t alter the default behavior. https://github.com/firebase/firebase-android-sdk/blob/master/firebase-inappmessaging-display/src/main/java/com/google/firebase/inappmessaging/display/FirebaseInAppMessagingDisplay.java#L339

Steps to reproduce:

  1. Remove or disable all web browsers on a device
  2. Setup an IAM campaign that contains a button with a link to a website
  3. Tap on this button after receiving in app message.

Result: app crashes with: Fatal Exception: android.content.ActivityNotFoundException: No Activity found to handle Intent

Expected: I would like to handle this exception in some way. Either by intercepting the on click and handling it entirely myself or by receiving an error in error callback.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
JasonAHeroncommented, Jul 28, 2020

Hey @letusneil I have a PR up that should fix this. Expect a fix coming soon https://github.com/firebase/firebase-android-sdk/pull/1781

1reaction
aguatnocommented, Feb 24, 2020

I was able to reproduce this issue using quickstart. Thanks for reporting, @mzgreen.

Let me discuss this with the team, and I’ll keep you posted with any updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Chrome if it crashes or won't open - Android
First: Try these common Chrome crash fixes · Close every tab except for the one that's showing the error message. · Quit other...
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
To restart your Android device, press and hold down the Power button until you see options to Restart or Power off. Restarting your...
Read more >
Browser crashes without any error - reason <button> inside ...
Right now in some cases after I click the button and then OK to alert the browser crashes down with no error but...
Read more >
Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Why Do My Apps Keep Closing? How to Troubleshoot
If an app keeps closing on your mobile device, there are several ways ... it by pressing and holding the Sleep button on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found