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

Receiving a "No Activity found to handle Intent' exception on Android #160

Open
kevin-objectstudio opened this issue Jan 8, 2020 · 1 comment

Comments

@kevin-objectstudio
Copy link

@EddyVerbruggen

Currently on:
Cordova Android: 7.1.4
Android Target SDK: API 27
Android Compiled SDK: API 27

I'm attempting to open the url "www.google.com" using this library and experiencing an exception.

Error: "No Activity found to handle Intent { act=android.intent.action.VIEW dat=www.google.com pkg=com.android.chrome launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) }"

After debugging the ChromeCustomTabPlugin.java class I was able to drill down and see the issue is occurring within the call on line 186 of this class. Specifically inside this method, the exception is thrown upon hitting the CordovaActivity.java class when calling super.startActivityForResult after the supplied activity calls startActivityForResult and passes the intent and request code.

It appears the activity is not null at any point during this process as the debugger shows the activity passed is the MainActivity.

I've confirmed the chrome package is installed and the app recognizes this package.

I'm wondering if this is a versioning issue or I haven't installed the library correctly. Any insight would be great.

@ChariseWalraven
Copy link

Also getting a similar error, just different pkg, since I'm using chrome beta as my default browser

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

2 participants