Questions tagged [salesforce-sdk-android]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
98 views

Marketing Cloud SDK 8.0.5 registrationManager NullPointerException crash

Using Marketing Cloud SDK 8.0.5 I have this crash in some devices: Fatal Exception: java.lang.NullPointerException: Parameter specified as non-null is null: method com.salesforce.marketingcloud.i$a.a, ...
  • 37
0 votes
0 answers
16 views

What is the possible reason that users kept receiving testing In-App Messages after the SDK went live?

My team and I are recently testing Push and In-App message in our new version of SDK. As mentioned, several of the end-users in our test list kept receiving testing In-App Messages. (Happening in both ...
  • 1
1 vote
0 answers
106 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: ...
  • 11
2 votes
1 answer
197 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 ...
  • 37
0 votes
0 answers
20 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 ...
0 votes
0 answers
24 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
0 votes
0 answers
89 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 ...
  • 1,095
0 votes
0 answers
301 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,...
  • 11
0 votes
0 answers
18 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(...
0 votes
1 answer
107 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, ...
  • 1
0 votes
1 answer
81 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 ...
3 votes
1 answer
209 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 ...
0 votes
1 answer
32 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 ...
  • 21
3 votes
1 answer
92 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:...
1 vote
1 answer
255 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 ...
  • 21
0 votes
1 answer
271 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....
  • 37
0 votes
0 answers
11 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 ...
1 vote
2 answers
108 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 ...
1 vote
1 answer
296 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"...
  • 13
0 votes
1 answer
605 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 ...
2 votes
1 answer
535 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 ...
0 votes
1 answer
888 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 ...
1 vote
0 answers
33 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 ...
0 votes
1 answer
243 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 ...
0 votes
1 answer
509 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 ...
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 ...
  • 21
0 votes
1 answer
132 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 ...
1 vote
0 answers
27 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 ...
1 vote
0 answers
160 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 ...
3 votes
0 answers
109 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 ...
2 votes
0 answers
236 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 ...
  • 423
2 votes
1 answer
79 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 ...
  • 23
1 vote
1 answer
69 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 ...
0 votes
1 answer
381 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....
4 votes
3 answers
630 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://...
0 votes
2 answers
516 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 ...
0 votes
1 answer
674 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....
1 vote
0 answers
500 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 ...
0 votes
1 answer
198 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 ...
  • 113
1 vote
1 answer
116 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 ...
1 vote
1 answer
287 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"...
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. ...
  • 119
0 votes
1 answer
223 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 ...
2 votes
0 answers
76 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 ...
  • 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)
2 votes
0 answers
292 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 ...
2 votes
1 answer
112 views

HTML decode Marketing Cloud title

.setNotificationBuilder((context, notificationMessage) -> { NotificationCompat.Builder notificationBuilder = NotificationManager.setupNotificationBuilder(context, notificationMessage); ...
2 votes
1 answer
67 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 ...
  • 23
0 votes
1 answer
146 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 ...
2 votes
1 answer
321 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....