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 ...
user avatar
  • 4,163
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 ...
user avatar
  • 439k
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 ...
user avatar
  • 961
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 ...
user avatar
  • 931
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.
user avatar
  • 4,163
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/...
user avatar
  • 4,163
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'...
user avatar
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.
user avatar
  • 4,163
2 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.
user avatar
  • 4,163
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 ...
user avatar
  • 931
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....
user avatar
  • 931
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.
user avatar
  • 4,163
1 vote

How to properly integrate MobilePush with Objective-C?

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

Fatal Exception in Marketing Cloud SDK (Android) - RejectedExecutionException

Version 8.0.5 has been released and addresses this issue.
user avatar
  • 4,163
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....
user avatar
  • 21
1 vote

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() ...
user avatar
  • 4,163
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 ...
user avatar
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://...
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 ...
user avatar
  • 19.4k
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(...
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 "...
user avatar
  • 4,163
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 ...
user avatar
  • 931
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.
user avatar
  • 4,163
1 vote

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

I get the same issue, you can fix the build by having android { testOptions{ unitTests.all { jvmArgs '-noverify' } } } in your build.gradle file, or if you're ...
user avatar
  • 111
1 vote

How to Switch login server(sandbox/other) in Salesforce Hybrid Mobile SDK on Android device without hardware menu button?

Salesforce Mobile SDK v3 is available and it solves this problem. You need to upgrade forcedroid and other mobile sdk stuff via NPM to get that. As shown in picture below, the login window now always ...
user avatar

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