Skip to main content

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
22 views

Fatal exception java.lang.IncompatibleClassChangeError with MarketingCloudSdk 8.1.5 for Android

I recently upgraded and Android app to compileSdk 34 and updated MarketingCloudSdk to 8.1.5 For some phones (eg. Galaxy Note 10) I have this exception at start up: Fatal Exception: java....
Alberto Cappellina's user avatar
0 votes
0 answers
11 views

SFMCSDK Android Crash java.lang.NullPointerException:

Sometimes we receive crashes with : Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'int com.salesforce.marketingcloud.analytics.stats.b.d()' on a null object ...
Alex's user avatar
  • 1
0 votes
1 answer
33 views

Push notification interaction does not open app, rather opens a transparent window with "Notification Message" title

I am using multiple push sdks in my project. I have SF Auth SDK as well. I have configured SFMC properly and I can receive the notifications as well as the inbox messages, but when I interact with the ...
eMazdoor's user avatar
0 votes
1 answer
71 views

Salesforce SDK is sending events even with the analytics disabled

We are using 'MarketingCloudSDK' version '8.1.5' in our Android app, and we realized that even after disabling the analytics, the logs indicate that Salesforce is still sending events. We are ...
Oscar's user avatar
  • 3
1 vote
0 answers
27 views

Android SDK: setProfileId not working

SDK Version: 8.1.5 implementation 'com.salesforce.marketingcloud:marketingcloudsdk:8.1.5' Issue: when setting the profileId the value is not synchronized with the SF backend. Furthermore, it seems ...
Alessandro Benvenuti's user avatar
0 votes
0 answers
44 views

Error: remoteMessaging' is incompatible with attribute foregroundServiceType

We have upgraded the com.salesforce.service:servicesdk to latest version 224.2.7 after that we are getting this error: AAPT: error: 'remoteMessaging' is incompatible with attribute ...
Akash Gharu's user avatar
1 vote
1 answer
48 views

Enable/disable analytics for tracking push notifications after MarketingCloud SDK initialization? (Android)

MarketingCloud analytics for tracking push notifcations can be enabled by calling setAnalyticsEnabled(true) on the MarketingCloudConfig.builder() instance when initializing SFMCSdk, as explained here. ...
VladSabau's user avatar
0 votes
0 answers
90 views

MarketingCloud AndroidSDK 8.1.5 | Tapping notification does not launch the app on Android 12 and up

I'm encountering an issue in our Android app where when notification is clicked, the app does not launch. We're using latest Library version 8.1.5 into project. Some key points from my findings: I ...
shubham_ag's user avatar
0 votes
0 answers
94 views

SFMC Mobile Push - some Android devices are getting registered as Not opted in with Missing or Invalid Device Token error

We are experiencing an intermittent issue where some of our Android users are getting registered as Not Opted in with Missing or Invalid Device token error. Just to give a reference around 758 records ...
parleggirl's user avatar
0 votes
1 answer
70 views

SFMCSdk Android - Request manager with status 429 too many requests

Android SDK RequestManager often logging with registration status "Too Many Requests - 429" Can someone explain what are the impacts of this in the registration process in Marketing Cloud? ...
Eloisa 's user avatar
0 votes
0 answers
22 views

Remove Header from salesforce sdk in android

I have tried the way Customizing Login Page for Mobile SDK Hybrid Android App but I am not able to remove the header for android. I was able to remove the header for ios. Looking for solution as per ...
Kaushal Gupta's user avatar
1 vote
0 answers
160 views

MarketingCloudConfig doesn't exist in version 8.1.4

I am trying to implement Android SDK in my app using steps below. https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/sdk-implementation/implement-sdk-google.html I have added maven ...
Cüneyt Aliustaoğlu's user avatar
0 votes
0 answers
100 views

In App Messaging - UI sdk - crash on release build

I am new to Salesforce sdk. I am using In app messaging UI sdk to implement chat feature within app and it's working in debug build. When i run on release build it crash with attached stacks trace. I ...
Arpit Patel's user avatar
0 votes
0 answers
52 views

Is it possible to identify when a notification is cleared by the user?

Does SFMC provide any way to know when the user explicitly clears the notification? By sliding it or clicking clear all notifications
wbelarmino's user avatar
0 votes
1 answer
45 views

SFMCSdk (Android) crash when inboxMessageManager trying to connect already-closed SQLiteDatabase (get messages)

We have fresh android setup (target 34) with Jetpack Compose and in our Marketing Cloud-related repository instance inboxMessageManager is successfully initialised (code below) but when restart ...
J S's user avatar
  • 1
0 votes
1 answer
90 views

Mobile Push Messages not being delivered to Android

Background: Using ReactNativeSDK We have iOS and Android devices registered in MC Sends are being reported for both in Marketing Cloud with no errors Push messages are being delivered fine to iOS, ...
Glen McMillan's user avatar
2 votes
1 answer
222 views

SfmcSDK Error: Fatal Exception: java.lang.IllegalArgumentException: Receiver not registered

I've been testing push notifications on Android and got the following log on crashlytics and logcat. Important to note that I've received the notification successfully and had no problems opening the ...
Eloisa 's user avatar
0 votes
0 answers
20 views

Android push group summary [duplicate]

Android automatically group notifications if there is more than 4 according to documentation (more that 1 in my Google Pixel 6). The problem is that I want to achieve custom click/grouping logic but......
sfuser's user avatar
  • 25
0 votes
1 answer
68 views

Creating a Android 13 (API 33) app with forcehybrid

As of November 1, 2023 all updates to apps on the Android Play Store need to be targeted at API 33 (Android 13). The documentation for the Hybrid Mobile SDK 11.0 say that the Target API is 33 and that ...
Rozgonyi's user avatar
  • 617
2 votes
2 answers
547 views

How to disable LWC caching on a mobile app?

So I disabled Enable secure and persistent browser caching to improve performance in caching as advised to disable caching. On my laptop, caching is disabled. However, after making changes on my ...
Z0q's user avatar
  • 91
0 votes
0 answers
147 views

SFMCSdk: Sometimes contact key is not changed

I've faced an issue when integrated the SFMC SDK for Android (version is 8.0.9). Sometimes contact key is not changed for our users. The chance is 0.2%. The integration code is listed below: ...
Ivan Gusev's user avatar
0 votes
1 answer
154 views

Android - SalesForce marketing cloud SDK proguard/dexguard issue

I'm having a problem receiving callbacks from push notifications: when i'm in the production environment and with dexguard enabled. Fatal Exception: java.lang.NoSuchMethodError: No direct method <...
Thiago Filadelfo's user avatar
3 votes
2 answers
1k views

How to Run and Debug Salesforce Mobile App on the desktop? (reloaded 3rd time and many years later...)

I was struggling with mobile development from day one of Lightning Experience and the Saleforce Mobile app. Always I felt a huge pain and gave up mobile development and put my focus on desktop, ...
Uwe Heim's user avatar
  • 28.4k
0 votes
1 answer
319 views

Android 13 - multiple notifications issue

We're seeing an issue with multiple notifications on Android 13. Previous Android versions are working fine. Repo steps Send 2 push notifications to a device Tap on one of the notifications Kill the ...
Mahuel Patel's user avatar
0 votes
1 answer
136 views

How to set location enabled in SFMCSdkModuleConfig

I want to set localization as enabled when initializing the SFMCSdkModuleConfig. So, I am looking for the equivalent to setLocationEnabled in the iOS SDK: https://salesforce-marketingcloud.github.io/...
27omotep's user avatar
0 votes
1 answer
69 views

Custom attributes are not reflected on the salesforce side

there was no such problem before, but after 1 month, custom attributes are not reflected on the salesforce side for newly created users. I am using version 8.0.8 of sdk ~!EventManager D (...
Rıdvan Özcan's user avatar
0 votes
1 answer
133 views

SFMCURLTypeAction constant in sfmc_handleURL

I am implementing the sfmc_handleURL function (doc reference), and I found there are 3 possible constants for the type argument: SFMCURLTypeCloudPage SFMCURLTypeOpenDirect SFMCURLTypeAction What ...
Matt's user avatar
  • 43
0 votes
0 answers
571 views

Stop SFMC email links from deeplinking to our Android app

We send out newsletters every week to our customers using SFMC. When someone clicks on the link we want to take customer to the browser instead of app in Android. We used mc-deep-link="false"...
SFMC_User's user avatar
0 votes
2 answers
418 views

No notifications on Android after implementing React Native Salesforce Marketing Cloud MobilePush SDK

I'm trying to implement push notifications through SF MC in my React Native project. I installed react-native-marketingcloudsdk and followed the instructions in the README and I get the following ...
Tara's user avatar
  • 101
0 votes
1 answer
178 views

SFMCsdk Notification do nothing after app got killed. In onCreate method of Application class. Android

To init an SFMCsdk we need some data for initialization. We are getting required data from our API covered with RxJava. So, when request is made, and data is received then initialization is finished ...
Vad's user avatar
  • 1
2 votes
1 answer
201 views

Marketing Cloud - Access all in-app messages (modal) in a device

A) I sent 5 in-app messages using Journey Builder and I would like to have access to all of their objects at once. Is there a way to do that? Currently, I'm using setInAppMessageListener which is only ...
Matt's user avatar
  • 43
2 votes
0 answers
363 views

How can I send analytic event about "push open" in Android SDK

I want to share a problem that I have been looking for a solution for a long time.I have checked all the steps in this document Integrate the SDK 10 times. There is no page on the internet that I ...
Rıdvan Özcan's user avatar
1 vote
0 answers
229 views

Error while receiving inapp message in android SDk 8.0.7

My app is receiving push messages but is unable to receive in-app messages. I have implemented everything from the documentation. https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/...
Zobaer Hossain's user avatar
0 votes
2 answers
657 views

How to set accent color for Push icon in Android with react-native-marketingcloudsdk

I am using react-native-marketingcloudsdk library in my React native project, For android to set the default_notification_color I have tried both AndroidManifest.xml & firebase.json ways, but ...
rkaartikeyan's user avatar
0 votes
1 answer
116 views

Android migration issues on MarketingCloudSDK 8.0.7 version

so I have this problem after updating MarketingCloudSDK to 8.0.7 version, I can't find a way with SFMCSdk to use: MarketingCloudSdk.isReady() Is there a way to solve this? Thanks in advance.
Vilkis's user avatar
  • 3
0 votes
0 answers
82 views

Why only in first install of application the registrationManager is send in Marketing Cloud SDK Android?

Hi in the past of my app we were using phone number as ContactKey but in February this changes to a personal UUID generated and stored in database. This is an example like with the phone number ...
André Ibarra's user avatar
0 votes
1 answer
308 views

In the Android sdk 8.0.7, is notification permission sent to the server whenever the application goes to foreground?

The app was previously using 8.0.4, and this time going to update it to 8.0.7. And as a result of checking the log, whenever change the notification permission of the app and bring the application to ...
amagasa's user avatar
1 vote
1 answer
122 views

Getting a wrong date format when getting inbox messages on Android

I'm using the react native sdk for SFMC and I have some difficulties with getting the inbox messages from the Android platform. Somehow the date format is like: Fri Sep 30 11:16:00 GMT+02:00 2022 And ...
Nico Martens's user avatar
0 votes
1 answer
148 views

ANR in UI tests SFMCSdk Android

When running UI tests with the SFMCSdk initialized I always get an ANR: ANR in my.package.android PID: 3250 Reason: executing service my.package.android/com.google.android.gms.measurement....
Kata's user avatar
  • 1
0 votes
1 answer
629 views

Android - Firebase Cloud Messaging API (V1)

Created new firebase project for my app and I'm considering using a new FCM V1 API, but in SalesForce MobilePush setup it requires Server Key to start sending push notifications. Question is where i ...
sfuser's user avatar
  • 25
0 votes
1 answer
853 views

Mobile push does not return feedback from push operations when sending a notification

Test done on ANDROID The platform returns that the submission failed, but does not explain why it failed. How do I get this feedback?
Ronald Silva's user avatar
1 vote
2 answers
840 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 ...
sindrenm's user avatar
  • 131
1 vote
1 answer
1k 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 ...
bengrah's user avatar
  • 121
0 votes
1 answer
496 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 ...
R15's user avatar
  • 61
0 votes
1 answer
119 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. ...
Roman's user avatar
  • 11
1 vote
0 answers
138 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: ...
R15's user avatar
  • 61
0 votes
1 answer
197 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 ...
Sinan Kozak's user avatar
3 votes
1 answer
433 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 ...
Sinan Kozak's user avatar
0 votes
1 answer
122 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 ...
sfuser's user avatar
  • 25
3 votes
1 answer
220 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:...
David Miguel's user avatar

1
2 3 4 5