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
Ganesh GuturiGanesh Guturi 

How to show Salesforce login screen on my existing iOS app?

Hi All,

I have integrated "SalesforceMobileSDK-iOS-Distribution" in my existing iOS application but I am not getting from where to start it to get the login screens and which class gives me a login screen of salesforce.

My scenario is very simaple:
  1. I have a home screen in my application and from there I have to navigate/show thire (Salesforce) login screen.
  2. User will enter username and password.
  3. Salesforce shoud validate and redirect (back) to my HOME screen with token/sessionID.
  4. That  token/sessionID will use internally in my application.
I have integrated "SalesforceMobileSDK-iOS-Distribution" in my application but I'm unable to move forward. I have connected app info such as Client ID,Client secret and Callback url.
Can you please help on this. Thanks in advance.
akhilesh_sfdcakhilesh_sfdc
Checkout the instructions and code samples on how to initiate the salesforce login via Mobile SDK. https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Distribution/blob/master/README.md