You need to sign in to do that
Don't have an account?
How to keep user logged in all time
How to keep user logged in all time?
Hi,
I am using Android App, in which i am using WebView to open salesforce url.
After logging in, if i close app and open it after few hours (6hr) it will ask me to login again.
How to make it logged in all time.
Hi,
I am using Android App, in which i am using WebView to open salesforce url.
After logging in, if i close app and open it after few hours (6hr) it will ask me to login again.
How to make it logged in all time.
If you're building a custom app and want to have persistant session then I believe you'll need to use the oauth flow to get an access token (and refresh token) that can be used to authenticate/validate the user. The mobile SDK has calls for this (but can also be quite heavy). At MobileCaddy (http://tps://mobilecaddy.net) we use a variant of the SDK to acheive full persistant login to the org for our custom apps.
All Answers
If so it might be that your access token as expired, in which case you will need to use the refresh token flow (https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm).
I am opening the org url inside WebView.
If you're building a custom app and want to have persistant session then I believe you'll need to use the oauth flow to get an access token (and refresh token) that can be used to authenticate/validate the user. The mobile SDK has calls for this (but can also be quite heavy). At MobileCaddy (http://tps://mobilecaddy.net) we use a variant of the SDK to acheive full persistant login to the org for our custom apps.
for more such useful tricks
Way to Hunt (https://waytohunt.org/)
Elitetricks (https://elitetricks.net)