Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [salesforce-sdk-android]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
22 views

Debug push error using SFMC SDK

I'm testing to send push notification from SFMC to mobile app using the app configured in MobilePush with FCM server key and APNS p8 Auth Key set. I sent a test push notification using Mobile Push: ...
user avatar
  • 11
2 votes
1 answer
118 views

Marketing Cloud SDK 8.0.4 crashes

I’m using com.salesforce.marketingcloud:marketingcloudsdk:8.0.4 and I have noticed that two crashes are increased since February 15th, these crashes are not new but they have increased a lot since ...
user avatar
  • 23
0 votes
0 answers
15 views

Android Mobile SDK v9.2.1 closes the App once the allow button is clicked after the login is done

I am using mobile SDK v9.2.1 for logging into the salesforce credentials, I had successfully logged in and after that allow and cancel button is shown in the screen, I had clicked the allow and taking ...
user avatar
0 votes
0 answers
20 views

App is not 64 bit compliant after adding SF SDK

I am getting error in uploading the APK to managed playstore when SF SDK is updated, I had added the 9.2.1 SDK in android the error is as below
user avatar
0 votes
0 answers
36 views

Is it possible to expose the "Items to Approve" on Salesforce Mobile App?

I found out that Items to Approve is only on Classic Experience on Salesforce : Is there a way to expose Items to Approve in Salesforce Mobile app (I'm using iOS) too? Right now, the only way I can ...
user avatar
  • 1,061
0 votes
0 answers
121 views

SFMC Android SDK: Migration from 7.x to 8.x - cannot initialise SDK by SFMCSdk.configure()

I'm encountering difficulties during the SDK migration from 7.x to 8.x. In 7.x SDK, I use MarketingCloudSdk.init() method to initialise, the SDK functions properly. MarketingCloudSdk.init(this,...
user avatar
  • 11
0 votes
0 answers
9 views

How to access a case record field in Android Service SDK

Before I launch the Salesforce chat using the embedded service SDK, I create a ChatEntity object and link to a field name called “CaseId” val caseEntityBuilder: ChatEntity.Builder = ChatEntity.Builder(...
user avatar
0 votes
1 answer
75 views

How to properly integrate MobilePush with Objective-C?

I have an integration of MobilePush on my project (React-Native), but with the recent updates i had to update to the latest version of the SDK (8.0.4). But i getting some issues with it. For example, ...
user avatar
  • 1
0 votes
1 answer
43 views

Calling setIdentity in SFMCSdkReadyListener crashes with UninitializedPropertyAccessException

I can share more information if needed. At the moment, I don't know what I need to share. The Library version is 8.0.4 Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property ...
user avatar
3 votes
1 answer
115 views

Fatal Exception in Marketing Cloud SDK (Android) - RejectedExecutionException

We are using Salesforce SDK 8.0.4. In the recent release, we have RejectedExecutionException. I am not sure if it is related but we started reconfiguring Salesforce when the user changes their ...
user avatar
0 votes
1 answer
27 views

Send push message to Android without sound

just wondering am i able to send push notification to android device without notification sound? Like silent push or just without sound it doesn't matter. I don't see any documentation writing about ...
user avatar
  • 21
3 votes
1 answer
87 views

SF Chat Android SDK v4.2.2 (latest) still contains legacy support libraries

The latest available version of the SF Chat Android SDK (com.salesforce.service:chat-ui:4.2.2) has not been migrated to AndroidX yet (after 3 years). It still depends on: com.android.support:...
user avatar
1 vote
1 answer
81 views

Second push notification message does not open

I encountered a problem where the app is closed completely, and I start the first notification it opens where it needs to open, but when I tap the second notification, nothing happens. Notification ...
user avatar
  • 21
0 votes
1 answer
172 views

Marketing Cloud SDK 8.0.3 crash

I'm using com.salesforce.marketingcloud:marketingcloudsdk:8.0.3 and I have the following crash in some devices: java.lang.IllegalStateException: at com.salesforce.marketingcloud.MarketingCloudSdk....
user avatar
  • 23
0 votes
0 answers
9 views

Once you forcedroid create, how do you update it in the future? or do I use Dependencies instead?

I'd like to know how do I update the app in the future. I see that I can use com.salesforce.mobilesdk:SalesforceSDK:9.0.0, but when I "forcedroid create" it creates the app and download all ...
user avatar
1 vote
2 answers
72 views

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

Steps: Setup an Android project with targetSdkVersion: 31 Include v4.2.1 of SF Chat Android SDK (latest available) implementation "com.salesforce.service:chat-ui::4.2.1" Run the app and ...
user avatar
1 vote
1 answer
223 views

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

Steps: Setup an Android project with targetSdkVersion 31 In the same project, include version v8.0.0 of MarketingCloud: implementation "com.salesforce.marketingcloud:marketingcloudsdk:8.0.0"...
user avatar
  • 13
0 votes
0 answers
23 views

Login flow is not working in a device with MDM installed

We are building a native android application which uses the SalesforceMobile SDK f and we have deferred login in the application. The application works fine on emulators and devices where MDM is not ...
user avatar
0 votes
1 answer
356 views

Firebase gives error for duplicate classes with Marketing Cloud SDK

We are trying to integrate Marketing Cloud SDK for our android application.But while building the application its gives us error of duplicate files of firebase.We have already implemented firebase in ...
user avatar
2 votes
1 answer
429 views

Marketing cloud Android SDK 7.4.1 crashes when targeting Android 12

It appears SDK needs to be updated for Android 12: java.lang.IllegalArgumentException: my.app: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified ...
user avatar
0 votes
1 answer
779 views

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

What went wrong: Could not determine the dependencies of task ':app:lintVitalPreProdFcmRelease'. Could not resolve all artifacts for configuration ':app:PreProdFcmDebugRuntimeClasspath'. Could not ...
user avatar
1 vote
0 answers
32 views

Deeplinking needed for mobile app in salesforce

We are using salesforce customer community where we implemented custom login and custom change password screen. We are using android native mobile application with backend of salesforce customer ...
user avatar
0 votes
1 answer
191 views

Wrap LWC OSS App for Mobile

Is there a way to make an LWC "OSS" app obviously running on Node.js as a Mobile application? (i.e. Cordova). I see you can create an LWC Hybrid app running your "Salesforce" LWC ...
user avatar
0 votes
1 answer
402 views

Android Mobile Push via MarketingCloudSDK not received

I'm working on integrating MarketingCloudSDK on Android. It looks like everything is connecting properly and I see the devices registered. When sending push notifications, it said the message was ...
user avatar
2 votes
0 answers
38 views

Unable to search for published Knowledge articles in the Salesforce SDK on Android 10 (API 29)

we're using Salesforce Android SDK (version 224.0.0): https://github.com/forcedotcom/ServiceSDK-Android/releases And found out that text search through the knowledge articles doesn't work on Android ...
user avatar
  • 21
0 votes
1 answer
129 views

Android - Marketing Cloud crash on Android 5 and 6

Sorry if I don't provide enough context, but I'm and iOS Developer and I'm posting this because my Android colleague is off for a few weeks 😅 We're getting this crash in our app, which has the ...
user avatar
1 vote
0 answers
20 views

Unable to import Service SDK for Android [closed]

I am getting the below error when selecting build variants in example give in github https://github.com/forcedotcom/ServiceSDK-Android/tree/master/Examples/SnapinsSDKExample Unable to resolve ...
user avatar
1 vote
0 answers
130 views

Gradle build error with Amazon S3 maven repository dependency

I am developing an open-source react native library that it's a wrapper for the Salesforce SDK chat. This library uses a Salesforce maven dependency that is hosted on an AWS S3 Bucket. The problem is ...
user avatar
3 votes
0 answers
107 views

Firebase version of latest Salesforce Service SDK is outdated

We have noticed that latest Service SDK https://github.com/forcedotcom/ServiceSDK-Android/releases/tag/224.0.0 seems to still be using Firbase 17.3.0. Can anyone know when the Service SDK team will be ...
user avatar
2 votes
0 answers
178 views

Forcing Push Message send to a specific Device ID in Journey Builder

After registering a push device in the All Contact List, a random GUID is assigned to the contact created for the device. And when a ContactKey is assigned to that Device ID, it gets assigned to a new ...
user avatar
  • 413
2 votes
1 answer
72 views

Category Tracking with MarketingCloudSDK

The MarketingCloudSDK (iOS/Android) offers the method sfmc_trackPageView with an item parameter, but how would I track the category? It works in the Web SDK or API, this is about what I miss in the ...
user avatar
  • 23
1 vote
1 answer
58 views

Setting Data Privacy modes from Android MarketingCloud SDK

I need to be able to set one of 3 data protection modes from an Android client that uses the MarketingCloud SDK. I understand based on this that there is no way to do this via the SDK directly, and ...
user avatar
0 votes
1 answer
342 views

Push Notification not working for android

I am working on an android project that utilizes the Salesforce Mobile SDK. I have recently implemented Push notification, this was working fine till Dec 19, 2019 firebase update. https://firebase....
user avatar
4 votes
3 answers
580 views

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

I am in the process of updating to the latest Salesforce SDK 6.3.5(Also the same with 6.4.0,latest version) from our old sdk which used GCM. I have gone through the steps as mentioned below: https://...
user avatar
0 votes
2 answers
448 views

Marketing Cloud SDK Implementation Not Working [closed]

I'm trying to implement the marketing cloud SDK on Android. Doing that, I need to set up firebase in my app. as written in the SDK implementation tutorial, the SDK works only with firebase-core ...
user avatar
0 votes
1 answer
609 views

Android - SalesForce marketing cloud SDK proguard issue

In native Android application, I have this release build crash, related to the SalesForce Marketing cloud SDK implementation: Fatal Exception: java.lang.IllegalAccessError: Method 'boolean com....
user avatar
1 vote
0 answers
410 views

SalesForce - The applicationId is not a valid UUID

I have implemented successfully the SF SDK (ver.6.2.2) on a native Android application and everything seems to be working until we decided to generate our release build. On the debug build we don't ...
user avatar
0 votes
1 answer
195 views

Android Switching Business Unit

i am facing the situation that inside my Android Application the user could switch between different Business Units. Inside the Documentation for iOS there is a part for switching between Business ...
user avatar
  • 113
1 vote
1 answer
108 views

Migrating from v5.6.2 to v6.1.0

Due to the April 11 deprecation of GCM client and the deprecation of SDK versions below 6.x.x of Mobile Marketing Cloud SDK, we're migrating our SDK versions. I'm having trouble implementing and ...
user avatar
1 vote
1 answer
253 views

Marketing Cloud PushSDK Attributes not updating

I'm implementing the Android PushSDK. I have the following code in my main activity: MarketingCloudSdk.requestSdk(sdk -> sdk.getRegistrationManager() .edit() .setContactKey("123456"...
user avatar
0 votes
1 answer
49 views

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

we have an android app which is connected with Salesforce. From the Android app, we will pass the username and password to the salesforce to get oAuth token. I have created one checkbox field i.e. ...
user avatar
  • 119
0 votes
1 answer
213 views

Android Redirect to URL (ADFS) issue

I am facing an issue while login with ADFS.Showing Blank Page in Android. Steps: Change Server -> Add Connection -> Added my custom salesforce server. then i can able to view the Login Page. In login ...
user avatar
2 votes
0 answers
74 views

Salesforce Android SDK - SyncDown creates two records of custom object

Below is the scenario which we are facing now. Any help would be highly appreciated. Step 1: Create account rest request Step 2: Request sent out and received by salesforce and record is created ...
user avatar
  • 21
1 vote
2 answers
51 views

Salesforce support for JB4A-SDK-Android v4.5.0

Does anyone know how long Salesforce will continue support for JB4A-SDK-Android v4.5.0? (Since currently the SDK is deprecated)
user avatar
2 votes
0 answers
281 views

Android Marketing Cloud SDK crashes randomly: MAC stored in civ does not match computed MAC

I'm using the Marketing Cloud SDK v5.4 for Android Push Notifications. My implementation is modeled completely after the sample code. On App start, the sdk initializes and I'm able to receive push ...
user avatar
2 votes
1 answer
106 views

HTML decode Marketing Cloud title

.setNotificationBuilder((context, notificationMessage) -> { NotificationCompat.Builder notificationBuilder = NotificationManager.setupNotificationBuilder(context, notificationMessage); ...
user avatar
2 votes
1 answer
65 views

Crash in JourneyBuilder SDK

We are seeing this crash happen quite frequently in our production application. IS there anyway we can work around this because as of right now, it is our highest crash with our latest release. We are ...
user avatar
  • 23
0 votes
1 answer
143 views

Delete a record from soup and salesforce Database

Im creating a Native android application which uses salesforce integration, Ive created a custom object on Salesforce and im able perform offline sync by using smartSync, the problem is im deleting a ...
user avatar
2 votes
1 answer
303 views

Can't download Salesforce Snap-Ins SDK for Android from Maven

I am trying to follow this documentation I tried to install several features: 'com.salesforce. service:servicesdk:208.4.0' 'com.salesforce.service:chat-ui:1.1.1' 'com.salesforce.service:chat-core:1....
user avatar
0 votes
1 answer
520 views

Device IDs unique for every install?

We are in the process of upgrading the android salesforce marketing cloud SDK to v5.2.0 from v4.5.0 and we noticed that each time we uninstall and reinstall the app it gives a new device ID to that ...
user avatar