Skip to main content
5 votes

Marketing Cloud SDK 8.0.5 registrationManager NullPointerException crash

This typically happens when you're initializing the SFMCSdk, but then directly accessing the MarketingCloudSdk. Please use: SFMCSdk.requestSdk { it.mp { push -> // push.doStuff } }
Bill Mote's user avatar
  • 5,286
4 votes
Accepted

JB4A-SDK-Android Device-Registration not working

If you have more than 1 service declared in your application then there's a Google bug in their GcmReceiver which may be getting in your way. See https://salesforce.stackexchange.com/a/128740/16482 ...
Bill Mote's user avatar
  • 5,286
3 votes
Accepted

Marketing cloud Android SDK 7.4.1 crashes when targeting Android 12

MarketingCloud Mobile Push SDK v8.0.0 has been released. This release includes support for Android 12.
Bill Mote's user avatar
  • 5,286
3 votes

Cookies not getting sent Salesforce1

This is basically because how Salesforce1 is implemented on Android. The main UI is provided by the OS (a WebView component), so when you navigate to a normal URL in an app that is outside of ...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

Restrict the user to get oAuth token from custom app in salesforce

It looks like you're trying to replicate the standard Salesforce functionality. Take a look at this article: https://help.salesforce.com/articleView?id=000230821&type=1 In a few words, you can ...
nchursin's user avatar
  • 1,001
2 votes
Accepted

HTML decode Marketing Cloud title

Two things are at play here. First off, the fact that your title is arriving on the device with the apostrophe escaped is a bug in the Marketing Cloud UI that has been fixed, but not released. Second ...
Seth's user avatar
  • 941
2 votes
Accepted

Crash in JourneyBuilder SDK

Unfortunately there is no workaround for this issue, however it has been corrected in version 5.3.x of the SDK. The current release, as of 20171214, is v5.3.2.
Bill Mote's user avatar
  • 5,286
2 votes
Accepted

Device IDs unique for every install?

There is not. Prior to version 4.9.x the Android SDK hashed together some bits of data and ANDROID_ID in order to generate it's unique device identifier. At the time this decision was made, 2011/...
Bill Mote's user avatar
  • 5,286
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

Firebase gives error for duplicate classes with Marketing Cloud SDK

Either remove the duplicated dependencies from your application or exclude them from the SDK using Gradle's implementation ('mc sdk') { exclude ... } syntax.
Bill Mote's user avatar
  • 5,286
1 vote
Accepted

Android SDK: APP_FOREGROUNDED and APP_BACKGROUNDED behaviors is never triggered

Google's JetPack AppStartup component and WorkManager are swallowing the lifecycle events and not passing them downstream to listeners/observers. Add this to your manifest: <provider android:...
Bill Mote's user avatar
  • 5,286
1 vote

Marketing Cloud - Access all in-app messages (modal) in a device

The SDK will only present 1 message at a time, however, you could call showMessage(id: String) to show the messages back-to-back. There is no way to manually delete a message from the device, however, ...
Bill Mote's user avatar
  • 5,286
1 vote
Accepted

Marketing Cloud SDK 8.0.5 registrationManager NullPointerException crash

We were experiencing this crash, and it turned out we were configuring the SDK in multiple locations. Depending on timing, sometimes we would be trying to use the listener passed to SFMCSdk.configure()...
ChrisSH's user avatar
  • 26
1 vote

Could not resolve com.opentok.android.v3:opentok-android-sdk-v3:3.1.3

Salesforce SDK for Android seems to use an earlier version of opentok-android-sdk (2.16.3), which has dependency on opentok-android-sdk-v3-3.1.3, which seems to be no longer available (see https://...
Tedy Kanjirathinkal's user avatar
1 vote

Wrap LWC OSS App for Mobile

The LWC OSS Scaffolding or Project Builder has a PWA (Progressive web app) option. This option allows you to build a "regular web app" which can be "downloaded" to users devices as ...
glls's user avatar
  • 20.2k
1 vote
Accepted

Android Mobile Push via MarketingCloudSDK not received

The issue was I implemented the notification handler, FirebaseMessagingService. So I had to implement the MarketingCloud handler within onMessageReceived if(PushMessageManager.isMarketingCloudPush(...
ordinaryman09's user avatar
1 vote

Salesforce update 6.x.x(Updating to FCM) :Failed to retrieve InstanceId from Firebase message,systemToken always null

After trying all possible combinations, i have tried downgrading some of the firebase dependencies and seems like the ML kit version was causing the issue. Not sure why that would be the case. Had the ...
Anupama VK's user avatar
1 vote

Salesforce update 6.x.x(Updating to FCM) :Failed to retrieve InstanceId from Firebase message,systemToken always null

If you have implemented our SDK alongside another push provider, to include Firebase's own messaging service, then you must get and handle the token yourself. An example of this can be seen in our "...
Bill Mote's user avatar
  • 5,286
1 vote

Marketing Cloud SDK Implementation Not Working

You should be using version 17.0.1 of firebase-core. The SDK docs page uses a shared variable for the Firebase major version number, which is no longer correct since Google is publishing no longer ...
Seth's user avatar
  • 941
1 vote
Accepted

Marketing Cloud SDK 8.0.4 crashes

Please see version 8.0.5 of the Push SDK.
Bill Mote's user avatar
  • 5,286
1 vote

How to properly integrate MobilePush with Objective-C?

8.x versions are not currently supported (20220131) with the SDK's ReactNative plugins.
Bill Mote's user avatar
  • 5,286
1 vote

Fatal Exception in Marketing Cloud SDK (Android) - RejectedExecutionException

Version 8.0.5 has been released and addresses this issue. UPDATE 20221214 -- If you are using the legacy v7.x SDK natively, or as a result of using the Cordova or React plugins, a fix has been back-...
Bill Mote's user avatar
  • 5,286
1 vote
Accepted

Second push notification message does not open

This problem is not related to Marketing Cloud SDK at all. Just creating my own notification I can replicate the problem, so the fix was to add Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent....
sfuser's user avatar
  • 25
1 vote
Accepted

Marketing Cloud SDK 8.0.3 crash

I suspect you're not initializing the SDK in your application's onCreate() method and/or you're delaying/preventing the SDK from being initialized. Also, if you're application is calling getInstance() ...
Bill Mote's user avatar
  • 5,286
1 vote
Accepted

SF Chat Android SDK v4.2.1 (latest) not compatible with Android 12

SalesForce has released a new version of the SDK that addresses this issue: SDK v224.1.2 (Chat v4.2.2) Fix: Allows customers to upgrade their targetVersion to API 31 (Android 12). Without these ...
David Miguel's user avatar
1 vote
Accepted

MarketingCloud AndroidSDK 8.0.0 | Tapping notification does not launch the app on Android 12

Please update to version 8.0.1 which has been released to address this issue.
Bill Mote's user avatar
  • 5,286
1 vote
Accepted

Migrating from v5.6.2 to v6.1.0

According to the SDKState output you have multiple FCM messaging service classes registered in your manifest at a higher priority than the one used by the SDK. com.example.login.service....
Seth's user avatar
  • 941
1 vote
Accepted

Marketing Cloud PushSDK Attributes not updating

The Attributes can be set with firstname and lastname without spaces. This can be seen in the MobilePush Demographics under Audience Builder. This has always been the case, but I do not know why.
Bill Mote's user avatar
  • 5,286
1 vote
Accepted

Robolectric unit tests fail with the same message using Exacttarget:4.0.4

This has been resolved as of version 4.7.x of the SDK: Release Notes Please update to the latest version and, as always, please let us know if you're experiencing any issues.
Bill Mote's user avatar
  • 5,286

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