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 ...
  • 2,862
7 votes
Accepted

Mobile SDK Hybrid Apps - Local and Remote

Very interesting question. I was in a similar situation in an app a year back and here's what I researched and hacked together. Officially, you need to pick either the local or remote mode - both are ...
7 votes
Accepted

How will Salesforce's move to SHA-256 for certs impact Mobile SDK users?

My understanding is that it will not impact apps built using the Mobile SDK 3.0 as it already supports SHA-256 in its libraries. However, you still need devices/ browsers meet the compatibility ...
7 votes
Accepted

Can't create new project with Mobile SDK 3.3 with Cordova 5.0

This is actually a known issue with Mobile SDK 3.3 - it will NOT work with Cordova version 5.0 (only Cordova 4.x is supported). If you have to use Cordova 5.0, please upgrade to the latest version of ...
6 votes
Accepted

Wiindows 8 app using Salesforce Mobile SDK

The Mobile SDK currently supports the following approaches Native iOS Native Android Hybrid iOS Hybrid Android Although it uses Cordova for packaging which does support Windows 8 development, the ...
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 "...
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 ...
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 ...
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</...
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) { ...
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 ...
5 votes

hybrid remote app with customer portal reset password issue

Since you're using a custom login screen, I'd also customize your forgot password screen to propagate that state back to the login screen. Pass it and return it as a startURL
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 ...
5 votes

Lightning Community via custom Mobile SDK app?

Your approach of a 'simple Hybrid App that sends you to the Community Login page' is the right path here. As for your other concerns but I'm concerned that Locker Service will cause a problem with ...
4 votes

android hybrid app access-control-allow-origin error

I've seen this earlier. This can happen on emulator when your hybrid app is invoking Visualforce pages and the root cause is same as when you'd see this issue in a web application. This thread ...
4 votes
Accepted

Unable to open Mobile SDK 2.3 project in Android Studio

This is because Gradle support was actually introduced in Mobile SDK 3.0 which was released in January end. Please upgrade to 3.1 and you should be good to go. The 3.0 release notes states Other ...
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(...
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 ...
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 ...
4 votes
Accepted

Hybrid SmartSync app crash - setObjectForKey: object cannot be nil (key: Customfield__c)' exception

Refer to this thread. This was a known issue which is now fixed - Either update your local repo from here or pull down the latest libSmartSync.a file from the repo. This is the link to the github ...
4 votes
Accepted

Impact of intergrating the mobile SDK

Not sure where you got 50MB from, but that is incorrect. With the latest release (6.3.4) the SDK will add a little less than 1MB to your application. If you would like to verify this you can use ...
  • 931
4 votes

Marketing Cloud Push Notification not received on Android

For most devices, removing the app from recents will have no effect on whether the app can receive a push message. For some device models, I have seen that removing an app from recents is treated the ...
  • 931
4 votes
Accepted

Connecting a Mobile App to multiple BUs

This is not a supported use-case as of 20220114. It can be accomplished, but it should not be done. The application can launch with the configuration of your global BU and be switched to a child BU ...
  • 4,268
3 votes
Accepted

Chatter Library for Angular.js/ Ionic for hybrid mobile app

There's probably no open source Ionic or Angular library available for now for hybrid apps specifically for Chatter API. You should look at forceng though. Since Chatter operations are handled by ...
3 votes

What is the best way to integrate data with native mobile apps?

The question is fairly open ended - you don't really elaborate on what your so-called Salesforce website does and whether it's built using any responsive frameworks or not (meaning how well it renders ...
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 ...
3 votes

404 error when making SOSL queries from native mobile applications

When experiencing errors that are clearly raised from the server side, a good place to start is the system status page at trust.salesforce.com. At the time you seem to be accessing it, there appear to ...
  • 19.2k
3 votes
Accepted

SmartStore SmartQuery mobile not working

Better late than never I suppose, but yes, you have to create indexes for all of the fields you want to query by. So you'd need to create an index on some_field__c in order to filter on it in a ...
  • 24.8k
3 votes
Accepted

Mobile SDK Hybrid Template - How do I change splash screen?

If it's visible on iPhone but not on iPad, it probably means you changed only the Default.png file There are other iPad specific files that you need to change 768 x 1004 pixels Default-Portrait.png ...
3 votes
Accepted

Query to read soup data for custom object in Android app

The querying process is the same for standard objects and custom objects. For example, if you do this for opportunity return query("SELECT {Opportunity:Name}, {Opportunity:Id}, {Opportunity:AccountId}...

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