Skip to main content
The 2024 Developer Survey results are live! See the results
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
  • 941
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
  • 941
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
  • 5,286
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
  • 497k
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

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
  • 5,286
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

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 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
  • 941
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,547
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,088
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,699
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
  • 10.2k
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

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

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

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

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

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
  • 941
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

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
  • 5,286
2 votes
Accepted

Mobile Push failed outbound message

99.999% of the time this is simply a certificate issue. Please verify that you've uploaded the correct certificate to the Marketing Cloud Servers. If you need further assistance please open a support ...
Bill Mote's user avatar
  • 5,286
2 votes

Discard In-App Message based on the date sent to customer

If I understand the question correctly, you're attempting to: - Limit the lifespan for viewership of an in-app message for 7 days based on the messages arrival time on the device. This is not ...
Jason Pitcher's user avatar
2 votes
Accepted

Has anyone used the Mobile SDK with Capacitor?

Capacitor is not a platform we officially support, but I do know that customers are using it and we have not heard about any large blocking issues. Our upkeep of Cordova is minimal at this point but ...
Brandon Page's user avatar
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
2 votes

Mobile Marketing Cloud SDK has dependency on outdated Firebase SDKs

Please open a Voice-of-Customer request through your support representative for this.
Bill Mote's user avatar
  • 5,286

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