function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
maheshamahesha 

hybrid sample application android

The android sample application sometimes ask logs in automatically after the first login and sometimes ask for the username and password. Is it due to the slowness of the network.

thx

mahesh

maheshamahesha

I am using the hybrid application sample code. Even though the function

function loginSuccess(oauthCredentials) {

in the bootstrap.html says success, the salesforce page ask for login and password. Once i login it does not ask and later on it prompts me. Is it due to the session id expiry.

 

thanks

regards

mahesh

maheshamahesha

Hi

 

I think it is not handling the refresh token part in the sample code. when the session expires we see that it is prompting for username and password.

Let us know if you have any tips.

 

thx

regards

mahesh

jwhartfieldjwhartfield

Just wanted to report I am having the same problem, but I'm not sure how to fix it because I can't see what's going on under the hood, or at least I don't know where to look.  But I agree it seems like it isn't getting a new access token from the refresh token since it works great for a day then prompts for a login every time after.

maheshamahesha

The latest unstable release from github seems to fix it. Thanks regards

mahesh