Skip to main content
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 ...
Bill Mote's user avatar
  • 5,286
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 ...
Gaurav Kheterpal's 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 ...
Gaurav Kheterpal's user avatar
3 votes
Accepted

Navigating to create record page Salesforce1 sforce.one.nativgateToURL

Try createRecord(​entityName​[, recordTypeId]) (pulled from Navigation with the sforce.one Object). createRecord(​entityName​[, recordTypeId]) Opens the page to create a new record for the specified ...
Adrian Larson's user avatar
  • 151k
3 votes
Accepted

Connect mobile app to multiple environments

The Connected app is actually NOT connecting your mobile app to your Salesforce org. It is merely determining what callback URL, access permissions etc. your app will have based on the Connected app ...
Gaurav Kheterpal's user avatar
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 ...
Gaurav Kheterpal's user avatar
3 votes

OAUth Issue: OAuth_Approval_Error_Generic

For me, the same issue was fixed by using sfdx force:auth:device:login Instead of authorizing via web login flow, I logged in using a device code. Also, check that your salesforce instance has ...
Talha Saqib's user avatar
3 votes
Accepted

Select custom objects of users i manage

You should be able to use a join to your advantage here, I believe: SELECT Name, OwnerId FROM MyObject__c WHERE OwnerId IN ( SELECT Id FROM User WHERE ManagerId = 'someValue' )
Adrian Larson's user avatar
  • 151k
3 votes
Accepted

Does the Learning App IOS documentation still work?

@McdonaldZip, if you look at the main GitHub page for that version the LearningApp (https://github.com/salesforce-marketingcloud/LearningAppIos) you'll see we've rewritten and replaced with a more ...
Brian M. Criscuolo's user avatar
3 votes
Accepted

Do I need to upgrade my iOS MarketingCloudSDK due to HTTP/2?

You don't have to do any changes in SDK. All you will be configuring auth keys in Marketing Cloud UI instead of certificates. Using the steps in the same URL which you have provided in your question -...
Naveen VM's user avatar
  • 1,689
3 votes
Accepted

Marketing Cloud SDK crash 8.0.11 Crash with error: Please add correct version of MarketingCloudSDK.bundle

We were able to verify that a relatively new Xcode setting (manageAppVersionAndBuildNumber) will alter our SDK’s ability to verify the versions of its components. The issue only surfaces when the ...
Ethan Yehuda's user avatar
3 votes
Accepted

MarketingCloudSDK Crashes SwiftUI App in Beta TestFlight: _dispatch_once

This is because of accessing keychain from the background when data protection is enabled. Add the below code before SDK init and we should not be seeing the crash anymore. SFMCSdk....
Prakashini Pattabiraman's user avatar
2 votes

OAUth Issue: OAuth_Approval_Error_Generic

You may get this error if the scope param in your authorizationUrl request DOES NOT match the scopes you've added to the connected app. For example: https://test.salesforce.com/services/oauth2/...
NSjonas's user avatar
  • 10.2k
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. ...
Brian M. Criscuolo's user avatar
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 ...
shallowThought's user avatar
2 votes

ByPass Login in Salesforce SDK

It is not possible to completely bypass login using the Salesforce Mobile SDK. There are however a few things you can do. 1) If you're using Communities, you can use a custom auth screen as described ...
Gaurav Kheterpal's user avatar
2 votes
Accepted

Salesforce1 vs Native app development

You use the SDK when you want your own experience (e.g. a custom branded app driven by Salesforce data), or when you need additional hardware access (e.g. direct camera access), and you use ...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

Track custom event using Salesforce marketing cloud iOS SDK

Unfortunately, as of 20180124, you cannot track a custom event with the Salesforce Marketing Cloud Mobile Push SDKs. I suggest you open a Voice of Customer (VOC) request via your account manager as ...
Bill Mote's user avatar
  • 5,286
2 votes
Accepted

Marketing Cloud Cordova Plugin - Crash on iPhone 5 OS 10.3

We’ve released version 5.1.1 of the SDK which addresses a crash on armv7s device (like yours). Based on the crash log, we’re not precisely sure that it is the same crash (no symbols were generated) ...
Tom Brooks's user avatar
2 votes

Difference between JB4A SDK and Salesforce Marketing Cloud SDK for iOS

The new SDK (version 5.0.0 and later) for iOS is our mainline, fully supported, modern architecture SDK framework. No new work (or maintenance) will be done in the JB4A iOS static library. ...
Brian M. Criscuolo's user avatar
2 votes

Lookup field in restApi

An object in JSON is surrounded by {}, not [] (which is an array). The following change should work: "Z_Product__r": {"Z_R3_Material_no__c" : "A1672SO"} This answer presumes that the named field is ...
sfdcfox's user avatar
  • 497k
2 votes

Lookup field in restApi

Lookup fields contain the Id of the associated record. So if your field name is Z_Product__c, then you will need to have the Id of the record in your JSON body to which you need the newly created ...
Jayant Das's user avatar
  • 30.6k
2 votes
Accepted

Salesforce License for React native Mobile App using Salesforce SDK

First, the Master Subscription Agreement for Salesforce prohibits sharing user licenses across users. You should not try to circumvent this, even for pure API users. Second, there are technical ...
sfdcfox's user avatar
  • 497k
2 votes

Salesforce Mobile SDK issue with Xcode 9

Please upgrade to Mobile SDK 6.0 to use Xcode 9 and 7.0 to use Xcode 10. When Apple updates Xcode it typically requires code change (often breaking changes) to the SDK. More documentation can be ...
Brandon Page's user avatar
2 votes
Accepted

Select all my tasks or tasks relating to my Accounts or Accounts of users i manage

You can actually just do the following: SELECT Id FROM Task WHERE What.Type = 'Account' AND (OwnerId = '<UserId>' OR Account.OwnerId = '<UserId>' OR Account.Owner.ManagerId = '<UserId&...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

Using Salesforce Mobile SDK vs Custom Salesforce Integration for Mobile App

Can we expect the Salesforce Mobile SDK to support a fairly recent version of React Native anytime soon? We don't know. Until/unless we see something in the release notes, we can make no assumptions ...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

How to extract value from SmartStore aggregate function query

When you use SmartSQL, you get back an array of arrays. So if you do: select a,b,c from x You should get back something like: [[a1,b1,c1], [a2,b2,c3], ...] Therefore if you do: select sum(a) from ...
Wolfgang Mathurin's user avatar
2 votes

MarketingCloudSDK iOS 7.0.1: Undefined symbols for architecture armv7

TLDR; remove armv7 from your list of architectures: SFMC has an iOS minimum of iOS 10 and iirc devices that can run iOS 10 all use newer architectures so it's safe to remove(?) but standard iOS ...
cream-corn's user avatar
2 votes

Salesforce Marketing Cloud mobilePush iOS Not Opted In with Variant Opt-Out Source

This is almost certainly a certificate issue. Please review the documentation and update your certificate accordingly (ref. https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/get-...
Bill Mote's user avatar
  • 5,286
2 votes

MarketingCloudSDK - iOS SDK XCFramework support

We just happen to have the very same issue, where Salesforce is our last dependency pending to be migrated to XCFramework. I posted a similar question a while ago (https://salesforce.stackexchange.com/...
Luis Recuenco's user avatar

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