15
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 ...
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
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
Salesforce Connected App - Push Messaging Android GCM API Key
This is the GCM key.
1) Go to this URL
2) Click Enable API
3) Click Credentials -> New Credentials and then chose Android Key
4) You will then the key as shown
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 ...
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'
)
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 ...
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 -...
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 ...
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....
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/...
2
votes
Accepted
What Controls the URL Format for Chatter Content?
Well I couldn't find a way to get the first style URL when using an OAuth initiated session, but I did find a way to make the CSS background-image work with the /services/data URLs.
First:
Make an ...
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
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 ...
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.
...
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 ...
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 ...
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) ...
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.
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
salesforcemobilesdk-ios × 406ios × 122
mobilesdk × 106
marketing-cloud × 80
mobilepush-ios × 58
sfdcmobilesdk-android × 43
mobile × 41
mobilepush × 40
rest-api × 24
salesforce1-app × 22
community × 18
react-native × 16
cordova × 15
soql × 14
oauth2 × 14
connected-apps × 14
push-notification × 10
smartstore × 10
login × 9
android × 9
hybrid × 9
xcode × 9
visualforce × 8
authentication × 8
sdk × 8