12 votes
Accepted

OAUth Issue: OAuth_Approval_Error_Generic

After much trial and error. I think this may be due to simple mis-configuration of the Connected App. Check the Scopes closely. For my trailhead app I needed the api, web, refresh_token scopes. I had ...
user avatar
  • 2,862
10 votes

Salesforce Private App Exchange Distribution

With Enterprise Distribution: You don't need to include UDIDs in your provisioning profile; any device can install the app You must host the IPA somewhere and provide an installation page (could be ...
user avatar
6 votes
Accepted

Best way to integrate Salesforce iOS SDK into an existing native app

Update April, 2015 Cocoapods is now supported If you don’t already have a Podfile for your project, create one in the project’s root directory. A Podfile is simply a text file named Podfile....
user avatar
  • 24.7k
6 votes
Accepted

Mobile SDK 3.x - Cordova Bug - Dialer Returns error for hybrid apps

For those facing the same issue, we managed to work around it with this approach In Platform/ios/CordovaLib/Classes/CDWebViewDelegate.m, there is a method (BOOL)webView:(UIWebView*)webView ...
user avatar
6 votes
Accepted

Join Queries in a Hybrid App (Salesforce SDK / Smartstore)

Short answer - it works as expected If you select * a soup, you will get all the "internal" columns we create to support smartstore operations (more on this below). Columns that hold data from "...
user avatar
6 votes
Accepted

Do Salesforce Officially Support Mobile SDKs?

Yes, Salesforce does support Mobile SDK as part of premium support. However, you actually don't need premium support for mobile, if you are facing an issue with Mobile SDK, you can either post on ...
user avatar
5 votes
Accepted

Developing a Swift Salesforce1 app

As a starting point, you can refer to this tutorial from Raja Rao (Salesforce Developer Relations Team) which explains how to integrate Swift in your existing Salesforce native iOS app. The source ...
user avatar
5 votes
Accepted

Salesforce Mobile SDK Community Registration

This link provides all configuration items that you need to have in place to use Communities with the Salesforce Mobile SDK. Depending on the kind of user license, you also need to have appropriate ...
user avatar
5 votes
Accepted

Custom Login Domain for SalesforceSDKManager

It is handled via the following key-value pair in your <appname>-Info.plist file: <key>SFDCOAuthLoginHost</key> <string>your_community_login_url_minus_the_https://_prefix</...
user avatar
5 votes
Accepted

How to upload image in a native iOS app built using Mobile SDK

You can use the requestForUploadFile method. Try this Use the UIImagePickerControllerDelegate delegate Set your image source to UIImagePickerControllerSourceTypePhotoLibrary Convert image data to ...
user avatar
5 votes
Accepted

Mobile SDK - iOS Native App - How to Switch user while logging out

The correct way to do this is as follows NSArray *allAccounts = [SFUserAccountManager sharedInstance].allUserAccounts; if ([allAccounts count] > 1) { ...
user avatar
5 votes
Accepted

Mobile SDK 3.2 Logout Issue - Network action must have an instance hosts

This one is actually a known issue and has subsequently been fixed. You can also view the code changes for this fixed ticket here. This was occuring earlier because the flow was missing handling for ...
user avatar
5 votes
Accepted

iOS SDK iOS9 - User Gets Logged Out every time

This has been a known issue with iOS9 but the good thing is that it's already fixed in 3.3.1 release. The root cause is that TheunarchiveObjectWithFile: message of the NSKeyedUnarchiver class now ...
user avatar
5 votes
Accepted

MessageOpened not woring on Android and iOS 10

Based on your comment in response to my original question in comments: Please enable analytics when you call configureSdk(). This will result in analytics data being transmitted to the ...
user avatar
  • 4,163
4 votes
Accepted

Debug Log Application Unknown

With the Partner API you can use the CallOptions.value to identify the client application. This populates the Application column. Or at least it does in the Login History view. I don't think you can ...
user avatar
4 votes

how can I make a copy of the SFRestRequest block?

You may now replace "SFRestAPI.h" with "SFRestAPI+Blocks.h" to call request with block syntax in the Salesforce Mobile SDK: NSDictionary *deleteParams = @{ @"...
user avatar
  • 151
4 votes
Accepted

PIN Security for a Force.com Mobile SDK App

It took me a while but I figured it out. The PINs configuration on each org's connected app will be different so the solution was to package up the Connected app as part of a managed package which can ...
user avatar
4 votes

Mobile SDK, XCode 6 XIB and Storyboards

In addition to Jonathan's comment above, you can look at this sample project which hooks up an older version of the Mobile SDK to Storyboards. The bottom line though - the mobile SDK provides you a ...
user avatar
4 votes
Accepted

iOS Mobile SDK 3.0 - App Crashes

This is actually a known issue which has been reported by other users as well. I've reproduced it at my end also. The issue is being tracked on the Mobile SDK iOS Github repo here. It is also ...
user avatar
4 votes
Accepted

Private AppExchange distributes ios Apps

This is correct - when you are inside a WebView, you can't access the local OS resources such as storage, file system and for app installation, these are required. I have distributed a few apps via ...
user avatar
4 votes
Accepted

Can't find the XIB File for RootViewController in Mobile SDK iOS Project

This is by design because the RootViewController inherits from UITableViewController and uses the SFRestDelegate Whatever UI elements you want to have in your app should be defined in the viewDidLoad(...
user avatar
4 votes

Use REST API to authenticate my customer community user login? Or bypass mobile SDK webview login page?

It is possible to use Mobile SDK along with Communities. There is a detailed tutorial available for it here. If you use the Mobile SDK, your app can launch your community login page in a WebView for ...
user avatar
4 votes
Accepted

Cannot upload Apple Push Certificate

I got this to work by ignoring the tutorial I linked above. The Salesforce docs also include a link to the Apple Developer Center, but it's a generic link to the Mac Dev Center landing page. I found ...
user avatar
  • 11.1k
4 votes

Can production org ids ever change and if so, under what circumstances?

It shouldn't change, but why hardcode? I would put the OrgId in a custom setting, and read it from there. That way you can test in Sandboxes, work in Prod and, if it ever changes, it's 5 minutes to ...
user avatar
4 votes

Can production org ids ever change and if so, under what circumstances?

A Sandbox's ID may change during a refresh, and definitely if you create a new Sandbox. Production ID values will always remain the same. However, when you log in, your session information already ...
user avatar
  • 438k
4 votes

Does an iOS app accessing SF through Mobile SDK need to be listed as a "Connected App"

This is similar to the question I answered here. The Connected app - client id and client secret can be from any org and it does not matter if you're not seeing that connected app in your org. This ...
user avatar
4 votes
Accepted

400 Request is not a valid ChasitorInit - live agent rest api

A few things may be at play here. 1) Try passing the X-LIVEAGENT-AFFINITY value as null. This prevents the session expiry. 2) If you copied your JSON from the online documentation example, it's ...
user avatar
3 votes
Accepted

App iOS and Android on Appexchange

You've answered your own question, no? Your package on the appexchange includes your connected app definition, plus a link to the iOS App Store or Google Play Store where users can install your app. ...
user avatar
3 votes
Accepted

Salesforce SDK and iOS Background Fetch

iOS does not allow access to the keychain while your app is in the background. The Salesforce iOS SDK does not support executing API requests in the background. So if you want to fetch/query ...
user avatar
3 votes

Create new Event using the iOS API

I contributed some nifty block methods to the SDK that make this very easy. See this method: - (SFRestRequest *) performCreateWithObjectType:(NSString *)objectType ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible