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

加载页面无法弹窗提示跳转第三方APP #1074

Open
JM-Jackson opened this issue Nov 12, 2024 · 1 comment
Open

加载页面无法弹窗提示跳转第三方APP #1074

JM-Jackson opened this issue Nov 12, 2024 · 1 comment

Comments

@JM-Jackson
Copy link

    mAgentWeb = AgentWeb.with(this)
            .setAgentWebParent(mLinearLayout, new LinearLayout.LayoutParams(-1, -1))
            .useDefaultIndicator()

// .setMainFrameErrorView(com.just.agentweb.R.layout.agentweb_error_page, -1)
.setOpenOtherPageWays(DefaultWebClient.OpenOtherPageWays.ASK)//打开其他应用时,弹窗咨询用户是否前往其他应用
.createAgentWeb()
.ready()
.go(getUrl());

public String getUrl() {
    return "http://www.jd.com";
}

不知道是要配置什么其他的地方才能跳转第三方APP吗?

implementation 'io.github.justson:agentweb-core:v5.1.1-androidx'
implementation 'io.github.justson:agentweb-filechooser:v5.1.1-androidx'  

这是导入的依赖

@JM-Jackson
Copy link
Author

有人遇到这个问题吗?部分机器无法跳转

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

No branches or pull requests

1 participant