signed apk is not working but unsigned apk is working for G+ and FB integration

2.5k views Asked by At

App is integrated with Google and Facebook login only. If APP is run in debug mode(straight from device), it works perfectly fine(able to login with Google or Facebook) but when the app is signed(release mode), Google and Facebook login integration stopped working.

Error comes in SigninActivity.java on -

private void handleSignInResult(GoogleSignInResult result) {
    Log.d(TAG, "handleSignInResult:" + result.isSuccess());
    if (result.isSuccess()) {
        // Signed in successfully, show authenticated UI.
        GoogleSignInAccount acct = result.getSignInAccount();
        Toast.makeText(this,"Name :"+acct.getDisplayName()+" Email :"+acct.getEmail(),Toast.LENGTH_LONG).show();
    } else {
        // Signed out, show unauthenticated UI.
        Toast.makeText(this,"Signed out ",Toast.LENGTH_LONG).show();
    }
}

handleSignInResult is coming false.

Log.d(TAG, "handleSignInResult:" + result.isSuccess());   

Debug apk runs on the device and signed(release) apk not runs on the device. App is running but google and facebook integration not working. But on some devices fb integration working only not google. And on my device(4.4.2) neither fb nor google working

1

There are 1 answers

3
Shoeb Siddique On BEST ANSWER

You need to use debug keystore with password = "android". You can find your debug keystore in .android folder. Example : C:\Users\shoeb.android