Intents with Result #6971
Unanswered
shashwatmi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Intent with result is always returning
ActivityResult{resultCode=RESULT_CANCELED, data=null}
,Plugin looks like this
`
@CapacitorPlugin(name = "Esign")
public class Esign extends Plugin{
@PluginMethod()
public void echo(PluginCall call) {
String doc_id = call.getString("docId");
String signer_id = call.getString("signId");
Bundle clientData = SignDeskActivity.createClientData(doc_id, signer_id);
Intent eSign = new Intent(this.getActivity(), SignDeskActivity.class);
eSign.putExtra("clientData", clientData);
startActivityForResult(call, eSign, "handleMessage");
}
}`
I am sending result like this
Intent resultIntent = new Intent(); resultIntent.putExtra("resp", sdkResponseJson); setResult(RESULT_OK,resultIntent); finish();
when i attach debugger i am always getting
ActivityResult{resultCode=RESULT_CANCELED, data=null}
in handleMessageI am new to Android, Am i missing something?
Beta Was this translation helpful? Give feedback.
All reactions