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

Problems with API level 30 #160

Open
UnitedBiscuits opened this issue Mar 19, 2022 · 2 comments
Open

Problems with API level 30 #160

UnitedBiscuits opened this issue Mar 19, 2022 · 2 comments

Comments

@UnitedBiscuits
Copy link

(Thank you very much for your work on this plugin, it has been very useful for me)

I'm having trouble starting apps on the Android emulator running API level 30 and above.
These were my test so far (all of them work fine on API level 29 except for the last one):

let sApp = startApp.set({"package": packageName}).check();
//Doesn't work - NameNotFoundException

let sApp = startApp.set({"application": packageName}).start();
//Doesn't work - Application not found

let sApp = startApp.set({"action":"ACTION_MAIN", "package": packageName}).start();
//Works for chrome ("com.android.chrome")
//Doesn't work for other random apps - No activity found to handle intent (but also doesn't work on API 29)

Any idea how to solve this?

@TiBz0u
Copy link

TiBz0u commented May 25, 2022

Hi @UnitedBiscuits, since Level 30, app cannot discuss with other app without explicit declaration in the AndroidManifest.
See https://developer.android.com/guide/topics/manifest/queries-element
Kr.

@eusi
Copy link

eusi commented Oct 19, 2023

Just to explain the comment from last user:
You need to add the package name of the app you want to open to YOUR AndroidManifest within queries-tag:

<manifest ...>
  ...
  <queries>
    <package android:name="com.example.application.package" />
  </queries>
    …
</manifest>

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

3 participants