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.
219
questions
0
votes
0
answers
19
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......
0
votes
1
answer
42
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 ...
1
vote
1
answer
85
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 ...
0
votes
0
answers
74
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:
...
0
votes
1
answer
76
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 <...
2
votes
2
answers
434
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, ...
0
votes
0
answers
113
views
Deep linking doesn't work on Android marketingcloudsdk
I have implemented the React Native SDK and I am successfully receiving push notifications on both platforms.
The issue is I can't catch url in JS side.
.setNotificationCustomizationOptions(
...
0
votes
1
answer
203
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 ...
0
votes
1
answer
92
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/...
0
votes
1
answer
47
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 (...
0
votes
1
answer
63
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 ...
0
votes
0
answers
364
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"...
0
votes
2
answers
263
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 ...
0
votes
1
answer
113
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 ...
1
vote
1
answer
119
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 ...
1
vote
0
answers
252
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 ...
0
votes
0
answers
127
views
Crash Exception java.lang.NullPointerException: 'void com.salesforce.marketingcloud.analytics.stats.b.a(java.util.Date)' on a null object reference
Crashes reported in production by Google Play Console
This issue has been around at least since July 2022 but likely earlier.
Unfortunately I cannot provide a reproducible sample as it appears to be ...
1
vote
0
answers
151
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/...
0
votes
2
answers
509
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 ...
0
votes
1
answer
99
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.
0
votes
0
answers
58
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
...
0
votes
1
answer
254
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 ...
1
vote
1
answer
87
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 ...
0
votes
1
answer
119
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....
0
votes
1
answer
383
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 ...
0
votes
1
answer
598
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?
1
vote
1
answer
1k
views
Can't receive notification when the app is terminated on Android
I'm facing an issue
I'm trying to integrate the Salesforce SDK into flutter and create a flutter plugin, so far everything is ok, only on android when the app is closed, I don't receive any ...
1
vote
2
answers
664
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 ...
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 ...
0
votes
1
answer
397
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 ...
0
votes
1
answer
109
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.
...
1
vote
0
answers
131
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: ...
0
votes
1
answer
186
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
415
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
88
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 ...
3
votes
1
answer
181
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
891
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 ...
0
votes
0
answers
89
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: ...
0
votes
1
answer
586
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 ...
2
votes
1
answer
105
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 ...
1
vote
1
answer
174
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": {
...
1
vote
1
answer
255
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 ...
1
vote
2
answers
339
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
489
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(...
1
vote
1
answer
990
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 ...
0
votes
1
answer
32
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.
1
vote
1
answer
782
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"...
1
vote
1
answer
226
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 ...
2
votes
1
answer
259
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"...
3
votes
1
answer
904
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 ...