Hot answers tagged

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 ...
5 votes

How to prevent caching in Cache.db-wal file in iOS App which contain Salesforce iOS SDK

I presume this is a native app built using the Force.com Mobile SDK for iOS. This is a standard iOS procedure to disable caching on your NSURLRequest Some sample code as provided here NSURLRequest *...
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

Lightning Design System - Custom Icon Styling Not Working On My iOS app

If you are getting an error about these files not being found, then it means either your pod isn't installed or the pod configuration file is not correct. The sequence of steps to be followed here is ...
5 votes
Accepted

Cannot handle OpenDirect push notification when iOS app is not launched

SFMCSdk.mp.setURLHandlingDelegate(self) should be set only after successful initialization of the SDK. For opendirect, when app is not in launched state, the SDK instance will be lost and hence when ...
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
Accepted

Automated Testing Salesforce one app (3rd party)

There is no way you can officially get access to the Salesforce1 IPA and APK files. Of course, there are other tricks in which you can recover these files from the device but they wilL NOT obviously ...
4 votes
Accepted

Duplicate symbol between ExactTarget and third party

We're aware of this issue and have addressed it for our next SDK release. We've namespaced our sqlite usage so that it can play more fairly within an app. This will be released later this month; ...
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
Accepted

ExactTarget library duplicated symbol IOS

Dsw, Essentially this means that you're trying to include Sqlite3 twice. The Marketing Cloud SDK requires Sqlite3, but there's nothing to say you can't piggy back on it. Essentially remove your ...
  • 7,048
3 votes

ExactTarget library duplicated symbol IOS

We've been making improvements to our SDK; please see https://salesforce.stackexchange.com/a/131089/34325 for details on the changes we'll be releasing to support this use case. Brian M. Criscuolo, ...
3 votes

Add Salesforce SDK to an existing iOS (Objetive C) project. How to do it?

I've done this a few times - added the Salesforce iOS SDK to my existing apps. There's actually a tutorial which my good friend Quinton Wall wrote for this. The key steps which you may be missing are ...
3 votes

Page scroll bottom when user try input anything: Safari issue

This hack worked well for me. Add the following JavaScript to your page: <script> var ua=navigator.userAgent; if((ua.indexOf('Salesforce')!=-1)&&(ua.indexOf('iPhone')!=-1||ua.indexOf(...
3 votes

Salesforce Marketing Cloud Mobile Push / JB4A SDK: Does anyone have a working iOS solution?

Please verify what kind of push certificate you are using and that is set in the Marketing Cloud App Center. If you are debugging, you MUST use an "Apple Push Notification service SSL (Sandbox)" ...
3 votes
Accepted

Marketing Cloud Push won't increment the badge no in iOS

This is the expected SDK behavior. I'll make a note to ensure that the web interface is clarified. In 4.9.5 and later, badges are now set according to the following logic: If a push message is sent, ...
3 votes

SFMC Inbox Messages

There was a bug addressed in v7.4.0 of the iOS SDK that would previously cause MarketingCloudSDK.sharedInstance().sfmc_refreshMessages() to return true everytime it was called, even if it was in fact ...
2 votes

How to integrate Salesforce page to Native iOS App?

Given your user's current instance name and session token, you can construct a URL to any Salesforce web page and open it in a standard UIWebView (or WKWebView) without requiring the user to log in ...
2 votes

Filling method params in doPost request

You can pass multiple values into the POST method: @HttpPost global static String doPost(String name, String phone, String website) { Account account = new Account(); account.Name = name; ...
  • 3,400
2 votes
Accepted

Xamarin SDK: Key Not Found Exception

After trying effortlessly and consulting a few other engineers who have attempted similar things, the answer is simple: do not use the Xamarin Salesforce SDK. For reference, I mean this one: https://...
2 votes
Accepted

Unable to change setting in iOS 8

If you are talking about using the simulator and it not taking your SFDCOAuthLoginHost value, take a look at this GitHub issue. It looks like the simulator isn't picking up the value correctly, but if ...
2 votes
Accepted

Ways to fetched the credentials of the logged in user in Salesforce SDK iOS

You have the current user ID from the userId property on SFOAuthCredentials after authentication succeeds. Then you can just issue a SOQL query for the User object to fetch any fields you like, ...
2 votes

Home screen icons not working IOS 8

I ran into the same issue. Images hosted as static resources simply refused to work for the Apple touch icon. However, the same image hosted outside of Salesforce worked fine. I then realized I was ...
2 votes

Cursor freezes inside textarea when using in Salesforce 1 App

This seems to be a known issue. Some of our customers are reporting issues with Visualforce Pages freezing in Salesforce1 iOS after making a long press to activate iOS's magnifying glass ...
2 votes

How to override back button in salesforce1 in IOS?

Here is a description of sforce.one navigation functions You need to use the navigateToURL(​url​[, isredirect]) function what you need to do: on the validation page you need to place the following ...
2 votes

What version of the Mobile SDK is an existing iOS app running?

There is a file called SalesforceSDKConstants.h in the SalesforceSDKCore directory. You can: #import "SalesforceSDKConstants.h" and then later NSLog(@"%@",SALESFORCE_SDK_VERSION); . I was on 2.0.1, ...
  • 1,531
2 votes
Accepted

Determining How/When to Add Consumer Key to OAuth Flow

I think you are misreading the documentation. Installing a package, managed or otherwise, has nothing to do with accessing the API in GE/PE orgs. Instead, as you've already discovered: I'm not ...
2 votes

Is it possible to get device token, if user selected Don't Allow for push notifications?

We are using device token as a unique ID for track app installs. This is explicitly disallowed by the APNS guidelines and it's a great way to get your app yanked out of the app store. But even if ...
2 votes

Moving a PDF from a native iOS Swift app into Salesforce?

1) You need to add Salesforce iOS Mobile SDK to your XCode project as a first step. You can follow this tutorial to do so. 2) I don't fully understand what you mean by 'directly into a Salesforce ...
2 votes
Accepted

libJB4ASDK-*.a is not permitted

The JB4A-SDK/libJB4ASDK-4.7.0.020600001.a static library is copied to the App Bundle. Don't do this. Add it to the target's Link Binary with Libraries build phase. Do not add it to the target's Copy ...
2 votes

libJB4ASDK-*.a is not permitted

Jared, can you confirm that the static library is NOT included in the "Embedded Binaries" section of your target's General settings pane in Xcode? That would appear to trigger the error you have. ...

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