157237596: Crash after clicking on a button when there is no active browser app on a device
See original GitHub issueIf 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:
- Remove or disable all web browsers on a device
- Setup an IAM campaign that contains a button with a link to a website
- 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:
- Created 4 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top GitHub Comments
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
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.