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

应用内无法通过URI跳转 #1071

Open
haifengjhf opened this issue Jul 18, 2024 · 0 comments
Open

应用内无法通过URI跳转 #1071

haifengjhf opened this issue Jul 18, 2024 · 0 comments

Comments

@haifengjhf
Copy link

问题详细描述 Detailed description of the problem

插件内的activity 声明了,同时声明了data,如下。在插件内通过startActivity 无法跳转对应的activity
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("scheme://host/path"));
context.startActivity(intent);

<action android:name="android.intent.action.VIEW" />

<data
    android:host="host"
    android:path="/path"
    android:scheme="scheme" />

复现问题步骤 Steps to reproduce the problem

  1. 自定义一个插件,插件内声明2个activity,activity1,activity2
  2. 在activity1中通过URI方式跳转到activity2
  3. 跳转到错误页面

其它重要信息 Other important information

replugin-host-lib/gradle Version:
rePlugin-plugin-lib/gradle Version:

Android API Version:
Android 手机型号&ROM(Phone model & ROM):

Logcat上下文 Logcat context

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