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
Intent Handling - handleOnActivityResult is never called or crashes #1044
Comments
Can you provide a sample app or the plugin you are using? |
Not the one I am working on! It's not a plugin! But, I will try reproducing this and provide a sample app. As I said I am not doing much in App B, just doing the following which works if I try to get result in
|
The error occurs If I do If call is not saved, following is logged in log cat
|
If it’s not a plugin but manual changes on Capacitor classes you should handle your request code before capacitor tries to handle it |
I am not sure how and where to do that! Any suggestion? or any way I can set Plugin callback from MainActivity? btw I am not changing any capacitor classes. |
Hi. |
For now, I created a Cordova Plugin for the same. But, it is specific to my project. So you will need to fork and update if you plan to use it. https://github.com/uzumakinaruto123/cordova-plugin-native-intents |
Closing as it's still not clear to me what were you trying and you figured out how to do it in a different way. |
Still getting "Unable to find a Capacitor plugin to handle requestCode, trying Cordova plugins 333" when using startActivityForResult. This issue should be reopened. |
Create a new issue with more information. It was closed because there was no enough information to investigate |
Trying to call a foreign activity and get result from it, but following error is thrown
Starting Activity and reading result as follows:
PS:- Foreign activity response is Stringified JSON with 1 or 2 keys and not image/bitmap data.
Foreign activity returns data as follows:
Following works:
Starting activity with-
getActivity().startActivityForResult(intent, 333);
But this will return response in MainActivity
The text was updated successfully, but these errors were encountered: