microsoftgraph / android-java-connect-sample

Use Microsoft Graph to access a user’s Microsoft account data from within an Android app. This sample uses the Microsoft Graph Client Library to work with the data, and uses the Azure AD v2.0 endpoint for authentication of users of personal or work or school accounts.
http://graph.microsoft.io/
MIT License
19 stars 20 forks source link

On press back button device hang. #16

Closed akashKite closed 4 years ago

akashKite commented 6 years ago

I am using this app for first time logging. Call Connect() function for signing. private void connect() {

    // The sample app is having the PII enable setting on the MainActivity. Ideally, app should decide to enable Pii or not,
    // if it's enabled, it should be  the setting when the application is onCreate.
    if (mEnablePiiLogging) {
        Logger.getInstance().setEnablePII(true);
    } else {
        Logger.getInstance().setEnablePII(false);
    }

    AuthenticationManager mgr = AuthenticationManager.getInstance();

      /* Attempt to get a user and acquireTokenSilent

from this function it call. public void callAcquireToken(Activity activity, final MSALAuthenticationCallback authenticationCallback) { mActivityCallback = authenticationCallback; mPublicClientApplication.acquireToken( activity, Constants.SCOPES, getAuthInteractiveCallback()); } after calling this function i get signing page.

screenshot_2018-03-13-11-50-59 1

after that i click on back button which appear on signing page. when i click back button device hang after some time get message of not responding. Device back button work perfect but authetication back button is not working .

JohnMAustin78 commented 6 years ago

Interesting problem. Honestly, I haven't spent a lot of time writing tests for your exact scenario. I'll investigate this and update this issue with my findings.

jasonjoh commented 4 years ago

Closing this issue as we are archiving this sample. Please see https://github.com/microsoftgraph/msgraph-training-android for an Android sample.