flutter_facebook_login pub working fine before i used 3rd party. when i write code for 3rd party it's not working. if i comment onActivityResult method then it's working fine again. what wrong with onActivityResult please go through it.
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == DocumentVerificationSDK.REQUEST_CODE) {
if (data == null) {
return;
}
String scanReference =
data.getStringExtra(DocumentVerificationSDK.EXTRA_SCAN_REFERENCE);
if (resultCode == Activity.RESULT_OK) {
//Handle the success case
} else if (resultCode == Activity.RESULT_CANCELED) {
//Handle the error cases as described in our documentation: https://github.com/Jumio/mobile-sdk-android/blob/master/docs/integration_faq.md#managing-errors
String errorMessage = data.getStringExtra(DocumentVerificationSDK.EXTRA_ERROR_MESSAGE);
String errorCode = data.getStringExtra(DocumentVerificationSDK.EXTRA_ERROR_CODE);
}
//At this point, the SDK is not needed anymore. It is highly advisable to call destroy(), so that
//internal resources can be freed.
if (documentVerificationSDK != null) {
documentVerificationSDK.destroy();
documentVerificationSDK = null;
}
}
}
pub : flutter_facebook_login
flutter_facebook_login pub working fine before i used 3rd party. when i write code for 3rd party it's not working. if i comment onActivityResult method then it's working fine again. what wrong with onActivityResult please go through it.