Questions tagged [android]

Android is an operating system based on the Linux kernel, and designed primarily for touchscreen mobile devices such as smartphones and tablet computers.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

does not accept comma character on android keyboard and ignores dot character as input for decimal places

In a Lightning Mobile app for Android we have a specific number field that when clicked to enter the value shows only a numeric keypad with the '.' (dot) for decimal values. However, the field itself ...
user avatar
1 vote
2 answers
80 views

Notification icon configured for MobilePush on Android, yet it's not displayed

We can't seem to get Marketing Cloud (MobilePush) to display the icon we've configured it to display on Android. As far as I can tell, we've followed the documentation correctly, but the system ...
user avatar
  • 131
0 votes
0 answers
185 views

MC-Cordova-Plugin support for Android 12 (SDK 31) - app crashes upon startup: java.lang.IllegalArgumentException

I am currently trying to get our app working against SDK 31 / Android 12, but I'm running into an issue specifically with the cordova-plugin-marketingcloudsdk or MC-Cordova-Plugin. We are currently ...
user avatar
  • 11
0 votes
0 answers
17 views

Pass extraPrechatFormDetails from an android app to Salesforce

On Web we are passing data from the browser to Salesforce without creating any prechat using this Now we would like to achieve the same behavior on Mobile android and we tried using this doc https://...
user avatar
  • 281
0 votes
1 answer
28 views

Salesforce chatbot not rendering SLDS CSS StyleSheet on Android Webview, what is the wrong with Salesforce

I am developing Salesforce chatbot in Android using JavaScript file. I am using Webview to load the content and it shows Chat with an Expert button. When I clicking on this button prechat page coming ...
user avatar
  • 61
0 votes
1 answer
41 views

In-app message doesn't show after migration to Hilt

After migration to Hilt (Activities and Workers), in-app messages stopped being displayed. As I can see from logs push message is getting delivered and PushMessageManager.handleMessage returns true. ...
user avatar
  • 11
1 vote
0 answers
71 views

Salesforce Chatbot - Uncaught Error: getSessionData requires two non-null arguments

While integrating Chatbot to mobile application, getting below error [chromium] [INFO:CONSOLE(2)] "Uncaught Error: getSessionData requires two non-null arguments (domain, keys).", source: ...
user avatar
  • 61
0 votes
1 answer
57 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
134 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
29 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
0 votes
0 answers
54 views

Navigate to different Home Page on Experience Cloud Community which uses Password less Login Discovery Page on Mobile and on Desktop

I am using the standard Login Discovery Page for Passwordless Login in Community for Sign-up/Login. The same community is hit on the desktop to open a different view of reports, and we also use an ...
user avatar
1 vote
1 answer
110 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
0 answers
21 views

In Salesforce mobile app, why does my button bring user out of the app and open the component in a browser

Button that points to the childComponent is not opening in the Salesforce app (on Android emulator) - it takes the authenticated user to the browser, ask for login instead. I selected "Open with: ...
user avatar
0 votes
1 answer
149 views

On Android in-app messages are not shown when the App is already in foreground

We noticed that if we send a message while the app is running, the SDK does not try to handle it until the app is put in background and back to foreground. Our question is if there is a way to let the ...
user avatar
2 votes
1 answer
58 views

Incorrect marketing cloud aar packaging?

In the aar from marketingcloudsdk is a class packaged as a.a which currently leads to a duplicate class error when building our application... because another library we just updated does the very ...
user avatar
1 vote
1 answer
51 views

How is the Marketing Cloud registration limit regulated?

I am using a device to test the Android implementation of the MarketingCloudSdk. Sometimes when logging the sdkState, I'm getting (even on a freshly installed apk): "RequestManager": { ...
user avatar
1 vote
1 answer
137 views

How to change the SFMCSdk configuration during runtime?

Our SFMCSdk is initialized when the user is logged in and we clear the parameters and disable push when logging out. On iOS there seems to be sfmc_tearDown to release the current instance, which lets ...
user avatar
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
0 votes
0 answers
64 views

Post-Chat URL Page (Visualforce Page) not displaying after end chat in Mobile App

We are implementing Post Chat Survey and Email feature for both Web and Mobile Chat customers using customer visualforce page - This funtionality is working fine for Web customers but not Mobile. ...
user avatar
1 vote
2 answers
79 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
295 views

MobilePush SDK 8.0.1 crash

Using com.salesforce.marketingcloud:marketingcloudsdk:8.0.1 leads to crash on users devices with Fatal Exception: java.lang.NullPointerException salesforceKeyGenerator.getEncryptionKey(...
user avatar
  • 11
1 vote
1 answer
174 views

Android 12: Mutable or immutable PendingIntent

As per your “How to Customize Notification Handling” documentation, one can pass a PendingIntent to SFMCSdk.configure (or MarketingCloudSdk.init) in order to open an Activity of choice from the ...
user avatar
  • 131
0 votes
1 answer
21 views

Minimum version of Android on devices for Mobile Push

What is the minimum version of Android on users' devices that MobilePush supports? I'm using SFMC Sdk for integration into my app.
user avatar
1 vote
1 answer
235 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
1 vote
1 answer
176 views

looking for android 12 support

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a Pending Intent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if ...
user avatar
  • 11
2 votes
1 answer
159 views

Cannot compile when targeting Android 12

Steps: Setup an Android project with targetSdkVersion 31 In the same project, include version v7.4.1 of MarketingCloud: implementation "com.salesforce.marketingcloud:marketingcloudsdk:7.4.1"...
user avatar
2 votes
1 answer
453 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
0 answers
58 views

Minimised chat hidden behind dialog fragments

The minimised chat view is not drawn over fullscreen dialog fragments. We use com.google.android.material.bottomsheet.BottomSheetDialogFragment throughout our app. Using a single-activity model with ...
user avatar
  • 1
0 votes
1 answer
816 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
0 votes
1 answer
61 views

In-App Message Crashing after receiving the message [closed]

It's implemented the same way the documentation requires, but it thrown a message when it tries to display the message. E: FATAL EXCEPTION: main Process: com.my.customer, PID: 3841 java.lang....
user avatar
0 votes
0 answers
44 views

Disable badge count on Android

I'm using 7.2.0 version of marketing cloud sdk plugin. Is there a way to disable the badge count on Android?
user avatar
  • 1
0 votes
1 answer
38 views

Is it safe to remove MCInitContentProvider in our AndroidManifest?

Just a question. Is it possible to remove the MCInitContentProvider in our AndroidManifest? Not have it registered when compiling the apk. It seems like the point of this content provider is to expose ...
user avatar
2 votes
0 answers
154 views

400 Bad Request for Salesforce Platform APIs in Android Version 6

We are facing an issue with our mobile application, we face issue(400 bad request) when calling Salesforce Platform API to get specific records of custom object(sObject Contact Association). And this ...
user avatar
1 vote
0 answers
64 views

Lightning Datatable fixed header overlap in android

I have a lightning Datatable fixed header, but it is overlapping in Android as in the image attached below and it work's fine in iPhone and Desktop. Any work around for this issue? ]1
user avatar
  • 11
0 votes
1 answer
39 views

Looking for ways to implement the migrateBU gist given by salesforce for MobilePushSDK

Questions I have about implementation When I import this method 'context' is not found and Im not sure I am setting it up properly. Will I be able to switch BU and register a contact for 2 BUs ...
user avatar
0 votes
0 answers
153 views

React Native Push Notification without body

I've successfully installed the RN library for MC push notifications on my app (https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk) I'm able to register contacts and receive ...
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
-1 votes
1 answer
64 views

How to convert remotemessage to notificationmessage [closed]

In SFMC we have default messageservice which is integrated inside the library which will handle onMessageReceived(RemoteMessage rm)., where as in SFMC inside our app how we will change remotemessage ...
user avatar
  • 99
1 vote
1 answer
138 views

Can we clear the contact key when logging out?

It is possible to clear and remove the association of that contact key with that particular device when the user logs out? What's the recommended approach to avoid having the notifications sent to ...
user avatar
0 votes
2 answers
742 views

Failed to resolve: com.salesforce.marketingcloud:marketingcloudsdk:7.2.0

I'm trying to build an android app for custom hardware, Android 8.x, in Kotlin. I need to be able to send simple and custom notifications to devices. Reading the getting started doc on: https://...
user avatar
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
972 views

Android Push notification not working on React native - Firebase project ID is required to communicate with Firebase server

Version of Mobile SDK Used: SalesforceMobileSDK-Android v 8.1 Issue found in : React Native OS Version: Mac OX - Catalina 10.15 Device: Nokia 8.1 Android version 10 Steps to reproduce: Login in ...
user avatar
1 vote
1 answer
274 views

Can we manually track that a notification was opened?

I'm using Salesforce mobile push alongside with Firebase Messaging. Since I'm building the notifications manually on FirebaseMessagingService, I'd like to know if there's a public method to track the ...
user avatar
1 vote
0 answers
138 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
1 vote
1 answer
651 views

Tapping on the notification does not launch the App if the App is killed/closed forcefully after getting the notification

MobilePush (Android) SDK (v.7.1.0) We are using Full Control Customization Notification handling by following the document noted here: https://salesforce-marketingcloud.github.io/MarketingCloudSDK-...
user avatar
  • 13
1 vote
0 answers
56 views

Android Live Chat pre-chat field form screen shows duplicate views when exiting

I recently implemented the Live Chat UI from the Android SDK, and have encountered an issue where it appears that when showing the screen for pre-chat fields to the live chat, upon exiting the pre-...
user avatar
  • 11
0 votes
1 answer
42 views

How to make Account Lookup using Android Sales Force SDK?

Trying to make an Account lookup, looks like is not working. The code is pretty straight forward, but it looks like is not working. Any ideas what could be wrong with this lookup? val accountEntity = ...
user avatar
  • 31
0 votes
1 answer
70 views

Callback for when a Notification is opened on an Android app

I am new to marketing cloud and after going through the documentation I haven't found anything similar to a callback for when the SalesForce notification is clicked. In our project we also use the ...
user avatar