Skip to content

[Android]app crash when the customer url can't be handled in webview #10499

Closed
@ronniegong

Description

@ronniegong

after searching the source code, find that since 0.31, webview add shouldOverrideUrlLoading

source code

when the webview's page use customer url to start some other apps, and which user hasn't installed, there get a exception:
No Activity found to handle Intent { act=android.intent.action.VIEW dat=investapp://webend-promotion flg=0x10000000 }

code in this method should be wrapped with try/catch to avoid crash

Activity

lacker

lacker commented on Oct 21, 2016

@lacker
Contributor

I think we are missing the necessary information here. It's not obvious from this description that the root cause is a bug in React Native. I suggest creating an app that reproduces this problem on rnplay.org. Feel free to open a new issue if the bug reproduces in that case, though.

locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lacker@ronniegong@react-native-bot

        Issue actions

          [Android]app crash when the customer url can't be handled in webview · Issue #10499 · facebook/react-native