-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Hello Folks,
I am facing an issue with the Salesforce Mobile SDK Hybrid Cordova app where the login flow gets stuck and does not proceed after loading the Salesforce login page.
Environment Details
Org Type: Production
Org Domain: abbworld.my.salesforce.com
App Name: Abbworld Platform: iOS (Cordova Hybrid – Mobile SDK)
Salesforce Mobile SDK Version: 12.1
Xcode Version: 16.4
Issue Description
After launching the app, the Salesforce login screen appears normally. Once the user enters valid credentials, the login page does not redirect back to the app as expected. Instead, the screen stays stuck on the same login flow without progressing. There is no error message displayed on the UI. This issue started occurring after updating the Connected App Consumer Key in Salesforce.
Troubleshooting Steps Already Performed
I have verified and ensured the following:
Connected App Updated Consumer Key in both Salesforce and bootconfig.json.
Callback URL matches exactly with the value defined in the app.
OAuth scopes include: api, refresh_token, openid, id, and full.
Request
Could someone from the Salesforce Mobile SDK team help identify the cause of this login freeze or guide me on the correct configuration for iOS OAuth redirection in Hybrid Cordova apps?
Any insights or known issues related to URL schemes, WebView behavior, or OAuth redirect handling would be greatly appreciated.