1

I am working on mobile iOS and Android apps for our Community, and am using the Salesforce Mobile SDK to handle OAuth. We are using deferred login so that we can provide limited guest access to the site. The issue we're seeing is that the SDK screen does not provide a Cancel or Back button, which would be useful in case a user accidentally triggers the login flow.

Is there a way to cancel or back out of SDK's OAuth flow?

1

Yes, on iOS you can call SFLoginViewController's shouldShowBackButton method. On Android the device's back button should work. I would advise you extend the login view on each platform to further customize the back behavior.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.