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 ...
dacology's user avatar
  • 2,952
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 ...
Gaurav Kheterpal's 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 "...
Wolfgang Mathurin's 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 ...
Gaurav Kheterpal's user avatar
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 ...
Gaurav Kheterpal's user avatar
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 ...
Seth's user avatar
  • 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 ...
Seth's user avatar
  • 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 ...
Bill Mote's user avatar
  • 4,956
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, ...
Brian M. Criscuolo's user avatar
3 votes
Accepted

Why do we need the com.salesforce plugin for cordova apps?

The Mobile SDK is more than just database functionality. It gives you access to offline storage, camera, advanced gestures, notifications, device contact and calendars, and so on. You'll want to read ...
sfdcfox's user avatar
  • 481k
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
  • 149k
3 votes
Accepted

When Do Connected Apps Show Under "Connected Apps"

I haven't done this, but the online help indicates that you have to package it from a DE org as a managed package.
Jason Clark's user avatar
  • 11.8k
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

How often is MobilePush SDK data synced back to Marketing Cloud?

This is covered in the github 'Registration Updates Via Contact Key, Attributes, and Tags' The SDK will send changes to the Marketing Cloud servers within one minute of the first change to any ...
EazyE's user avatar
  • 8,295
3 votes
Accepted

MobilePush SDK & Progressive Web Apps (PWA)

PWA Apps are basically Websites running on modern browsers. Push notifications in PWAs context are simply Browser notifications and for the moment MobilePush doesn't support Web notifications. The ...
zeljazouli's user avatar
  • 1,068
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,661
3 votes

Migration Issues from MarketingCloudSDK 7.6 to 8.0.1

Please check the Project Settings -> General -> My Target -> Frameworks, Libraries, and Embedded Content to see if packages are listed in the import statement. I would also suggest cleaning ...
Sandra Topczewska's user avatar
3 votes
Accepted

MarketingCloudSDK | In App Messaging | Button URLs not handled in delegate

There is a known bug already which will be fixed in the next update. Please log a support ticket if you wish to be notified when the update is released.
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
  • 10k
2 votes

React Native Mobile SDK

I can understand that this can be a bit confusing as it's not really documented very well. The key concept here is that forcClient is an instance of react.force.net.js var forceClient = require('./...
Gaurav Kheterpal's user avatar
2 votes

Is it possible to use Lightning Component/Aura inside Salesforce Mobile SDK Hybrid Local App

You can leverage Lightning out feature to run the Lightning component code in your app. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/lightning_out_requirements.htm. You ...
Hari Hara Suthan's user avatar
2 votes

Why is the Salesforce Snap Ins SDK for Android and iOS so huge?

For the Android app it sounds to me like you are including all of the Sdks when you only want to use chat. If so the below tips may help. I see sizes increases of <2MB when I compile just the chat ...
Steve T's user avatar
  • 21
2 votes
Accepted

Marketing Cloud Mobile Studio Subscriber key

You are correct; Subscriber Key is the 1 value that allows you to reconcile contacts between Email Studio and Mobile Push. How/where you get/store that data is up to you, but you will need to call ...
Bill Mote's user avatar
  • 4,956
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
  • 481k
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.3k
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

How can I send analytic event about "push open" in SF Android SDK

You can use redirectForAnalytics when creating the PendingIntent for your notification.
Seth's user avatar
  • 931
2 votes

Android Switching Business Unit

You can switch to a different business unit be simply calling the MarketingCloudSdk's init method with the credentials of the new business unit. This will signal to the SDK to clean up the existing ...
Seth's user avatar
  • 931
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
  • 481k
2 votes
Accepted

Mobile Push SDK Opt-in status

Please see https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/sdk-implementation/user-data.html#reserved-words. You should not be setting this value manually. Also, if you're having ...
Bill Mote's user avatar
  • 4,956

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