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
}
}
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 ...
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.
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 ...
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 ...
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 ...
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.
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/...
2
votes
Not redirecting to Salesforce login page while opening the app
Same steps worked well for me and I see the login screen when I launch the app. I see the following error in your log
The node package shelljs is required to use this script. Run 'npm install shelljs'...
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 ...
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.
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:...
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()...
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://...
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 ...
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(...
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 ...
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 "...
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 ...
1
vote
Accepted
1
vote
How to properly integrate MobilePush with Objective-C?
8.x versions are not currently supported (20220131) with the SDK's ReactNative plugins.
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-...
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....
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() ...
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 ...
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.
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....
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.
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
salesforce-sdk-android × 75android × 31
sfdcmobilesdk-android × 28
marketing-cloud × 26
mobilepush-android × 21
mobilesdk × 17
salesforcemobilesdk-ios × 7
journeybuilder × 6
mobilepush × 6
salesforce1-app × 3
push-notification × 3
sdk × 3
cordova × 3
salesforce-sdk-hybrid × 3
community × 2
mobile × 2
login × 2
ios × 2
bug × 2
chat × 2
react-native × 2
salesforcesdk × 2
apex × 1
lightning-web-components × 1
rest-api × 1