cordova create


npm init

npm install [email protected] --save

cordova plugin add phonegap-plugin-barcodescanner

cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin

cordova platform add [email protected]

cordova platform add [email protected]

//copy a completed bootconfig.json file to www/

cordova prepare

The android working fine, it calls the start page but in iOS it's odd because after the successful login, it doesn't call the star page, what's shown is white screen.

Here's the log from XCode:

2017/03/24 05:38:11.383 hybrid[15195:1f07] DEBUG com.salesforce : popViewController: View controller ((null)) not found in the view controller stack. No action taken. 2017/03/24 05:38:11.772 hybrid[15195:1b03] DEBUG com.salesforce : webView:decidePolicyForNavigationAction:decisionHandler: Loading URL '/secur/frontdoor.jsp?sid=[redacted]&retURL=https%3A%2F%2F%2Fidex.html&display=touch'

1 Answer 1


Here's the fix:

  1. In Xcode, open your hybrid remote project.
  2. List item In the Project Navigator, expand the Plugins folder.
  3. Select the AppDelegate+SalesforceHybridSDK.m file.
  4. In the code editor, find the setupRootViewController method definition.
  5. On theright-hand side of the self.viewController assignment, add a user UIWebView:YES argument to the end of the parameter list:

self.viewController = [[SFHybridViewController alloc] initWithConfig:(SFHybridViewConfig*) [SalesforceSDKManager sharedManager].appConfig useUIWebView:YES];

Please see this link.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .