New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login Callback Method Called Twice #1397
Comments
Yup - this is by design the first time login occurs.
|
Thanks for quick response. Steps to replicate the issue in my app. I have created the SplashActivity (this is my main activity) launch on first time install the application. SplashActivity -----> if user is not logged in then its calling a LoginActivitity(Salesforce standard login). This time the onResume method called for my SplashActivity. LoginActivity----> enter the valid username and password then onResume (SplashActvity called twice) and i am checking RestClient client is null or not if not null then passing the HomeActivity. After few second the HomeActivity called twice. Let me know where is the loop whole or what mistake i am doing. SplashActivity calling this method.
Let me know what mistake i am doing. Can you please guide me for this. Thanks for your response. |
@vinod1988 Your |
@bhariharan Thanks for the reply. I am giving you the my SplashActivity blue print code. Let me know where i am doing the wrong.
This is my code that i have written inside the SplashActivity let me know where i am doing the wrong or not calling the proper method. @bhariharan Can u please guide me for this snippet code where i am doing the wrong. Thanks for your response. |
@vinod1988 This forum is reserved for known issues/bugs with our code. Please post other queries/discussions in our Google+ community. |
Please fill out the following details:
Version of Mobile SDK Used: 5.0
Issue found in Native App or Hybrid App: android native app
OS Version: 4.0.3 and above
Device: android
Steps to reproduce: login and then call another activity (after login the activity called twice)
Actual behavior: method called twice
Expected Behavior: It should be call once, When the login is success
Error Log:
@OverRide
public void onResume(RestClient client) {
// Keeping reference to rest client
this.client = client;
// Show everything
findViewById(R.id.root).setVisibility(View.VISIBLE);
isLoggedIn = true;
if (client != null) {
}
The text was updated successfully, but these errors were encountered: