forcedotcom / SalesforceMobileSDK-iOS

iOS SDK for Salesforce
Other
538 stars 420 forks source link

Blank screen after login #3757

Open bhagwat8024 opened 2 months ago

bhagwat8024 commented 2 months ago

Please fill out the following details:

  1. Version of Mobile SDK Used: 11.0.0

  2. Issue found in Native App or Hybrid App: Native IOS

  3. OS Version: Any

  4. Device: Any

  5. Steps to Reproduce:

    • Open the app on the client's device.
    • Attempt to log in using valid credentials.
    • After completing the login process, a blank screen appears instead of redirecting to the main app screen.
  6. Actual Behavior:

    • After the login flow, the app shows a blank screen, preventing the user from accessing the app.
  7. Expected Behavior:

    • After login, the user should be redirected to the main screen of the app and granted access to the Salesforce services.

8.Additional Information: The issue is isolated to this specific device or location. I was able to log in using the same credentials on my device without any issues, suggesting that the problem may be related to the client's specific environment (device, network, or location).

@wmathurin appreciate your help

wmathurin commented 2 months ago

Could you check if there are IP restrictions configured for this user profile? See https://help.salesforce.com/s/articleView?id=sf.connected_app_continuous_ip.htm&type=5

bhagwat8024 commented 2 months ago

@wmathurin we have these parameter set Image (6)

wmathurin commented 2 months ago

Could you check the device logs or the console output if you launch the application from Xcode? Are any errors being reported there?

bhagwat8024 commented 2 months ago

This issue is happening in client device in production , we don't have any access of any logs @wmathurin

bhagwat8024 commented 2 months ago

HI @wmathurin , any input from your side ?

depushpendra commented 2 weeks ago

@wmathurin

I would like to add steps to replicate again here may be you can suggest on half of it:

  1. The client installs the app from Appstore
  2. The client opens the application
  3. Clicks on Sign up button and all screens appear
  4. Clicks on login button and first screen appears to allow for notifications
  5. After that, the screen goes blank. User does not reach to the page to input username, We are using custom page url to load the login page
wmathurin commented 2 weeks ago

Could test your application with the latest version of Mobile SDK (12.2.)? 11.0 came out almost 1 1/2 years ago and unfortunately, we don't have the bandwidth to investigate/fix issues against old versions.

depushpendra commented 1 week ago

@wmathurin

I did investigate further and was able found the root cause. In iPhone iOS 16 and later we have lock down mode, if you enable that mode then you try to load Salesforce login page but it does not and give below error.

Please suggest if there is a quick fix to fix this issue.

IMG_2087

wmathurin commented 1 week ago

If you want to login while in lock down you will have to exclude the app and salesforce.com. Please refer to Apple's documentation.