roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
404 stars 332 forks source link

no response from flutter_facebook_login pub in flutter #253

Closed 97loser closed 4 years ago

97loser commented 4 years ago

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.

      @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;
    }
}
}