Skip to main content

Questions tagged [sfdcmobilesdk-android]

Salesforce Mobile SDK - Android deals with development of native and hybrid Android Mobile applications.

Filter by
Sorted by
Tagged with
1 vote
0 answers
26 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
24 views

AMPscript in Location Entry push keeps runs when opening the app

We created a location entry message that has an AMPscript code that basically updates a field in a Data Extension by adding 1 to the value of that field. We implemented this solution to count push ...
Raas's user avatar
  • 17
0 votes
0 answers
153 views

CMake Configuration Error When Integrating Salesforce with React Native Using react-native-screens

I'm working on integrating Salesforce into a React Native application and I've encountered a persistent CMake configuration error when using the react-native-screens library. I'm attempting to set up ...
Ashish Kumar's user avatar
0 votes
0 answers
68 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
33 views

Mobile Events with attributes are not received (Android SDK)

I am using the SalesForce Marketing Cloud Android SDK to track some events which seem to work unless we specify any attributes. We've double checked that in the Filter Definition in the Web console ...
Diego Beraldin's user avatar
1 vote
0 answers
40 views

The Android Mobile Push SDK's getMessages method is not giving older messages in response

0 I'm using the SFMC Android Mobile Push SDK for Inbox messages in the Android app. I want to retrieve all inbox messages sent from the SFMC app dashboard and display them to the user. Currently, I'm ...
Samir Sayyed's user avatar
-1 votes
1 answer
58 views

Salesforce Mobile SDK - Hybrid App

For hybrid app development I am getting error in installing force hybrid saying sfdx version as lower but I have the most recent one. C:\Users\Darshan>forcehybrid version Missing tools Installed ...
Darshan A Patil's user avatar
0 votes
0 answers
87 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
1 vote
0 answers
113 views

Fatal Exception: Receiver not registered: com.salesforce.marketingcloud.notifications.NotificationOpenActivity

I have experienced a serie of crashes with my Android app which use the MarketingCloudSDK. "Nearly all" (for now I see only Android 12+) the devices crashes, I suspect it occured when the ...
Florian N'Gbala's user avatar
0 votes
1 answer
39 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
0 answers
35 views

Salesforce mobile SDK sync when user comes from offline mode to Online

In our mobile app we are using Salesforce mobile SDK. Everything works fine for data synchronisation on online mode. But there is one issue offline with Android which I am not able to overcome. Please ...
Prabhakar Sharma's user avatar
0 votes
1 answer
122 views

InApp message appears unexpectedly when opening the app

So, we have implemented delayed displaying of InApp messages. It is done pretty much the way it is shown in documentation, inside Application class onCreate(): private suspend fun initSalesforce() { ...
Aleksey Chernyshev's user avatar
2 votes
0 answers
407 views

Firebase Cloud Messaging API (Legacy) scheduled to be decommissioned in June, 2024 [closed]

I use SFMC Android SDK for the apps in my company and we have received a notification from Firebase stating that the Legacy HTTP protocol will be decommissioned soon. When looking through the ...
Gabriel Araújo'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
1 vote
0 answers
67 views

Has someone created a Notification Centre for their Mobile App?

By notification center I am referring to a centralized location where users can view and manage all the notifications generated by the app. For eg - The heart icon on Instagram leads to the activity ...
Anay Shrikar's user avatar
0 votes
0 answers
41 views

Salesforce MobileSDK app login via SAML SSO still required to perform Salesforce MFA

My org has an SAML 2.0 Single Sign-On enabled with: Azure AD: SAML Identity Type: Federation ID SAML Identity Location: Subject Service Provider Initiated Request Binding: HTTP Redirect Use ...
raveeBunduwongse's user avatar
0 votes
1 answer
67 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
1 vote
0 answers
51 views

Over 59k of Android push subscribers were opted out overnight

I hope you can help if not with a solution, at least with some direction. Last night, over 59k of our previously opted in Android mobile subscribers were opted out in mass in Marketing Cloud with a &...
Jo93's user avatar
  • 27
1 vote
1 answer
97 views

Android SDK: APP_FOREGROUNDED and APP_BACKGROUNDED behaviors is never triggered

So, I have implemented SFMCSDK inside Application onCreate() the way it is written in a documentation, also aligned code with sample projects and another project where functionality works as expected. ...
Aleksey Chernyshev's user avatar
0 votes
0 answers
180 views

iOS and Android apps show up as Opted out after contact key registration

Install the app (our app is has delayed regitration true) Login to the app Upon successful registration when contact key is created, the default status of the contact/device is "Not Opted In"...
voapp's user avatar
  • 1
0 votes
0 answers
128 views

SFMCSdk doesn’t display notifications on Android 12

We implement SFMCSdk v8.0.9 in our Android app in order to send push notifications to our customers. We implement the case with using multiple SDK: class MessagingService : FirebaseMessagingService() {...
Iasen Hristozov's user avatar
5 votes
0 answers
156 views

How to debug the salesforce app on iphone?

I'm working on optimizing some custom lighning components for mobile use. On an android phone those components are rendered fine by the saleforce app, but if I open up the same components in the ...
Fin-luca Spiers's user avatar
0 votes
1 answer
147 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
0 votes
1 answer
175 views

Remote message is received but not able to display push notification to user

On verifying salesforce SDK logs, we understood that when we set an anonymous subscriber key to the salesforce SDK profile ID, we received push notifications with the valid SDK log status response ...
Deepika Ch's user avatar
0 votes
2 answers
398 views

Mobile push using one Mobile App and Multi Org/multiple BUs

We have the following structure: Parent BU 1.1 Child BU A - connected to SFCRM Org 1 1.2 Child BU B - connected to SFCRM Org 2 We want to develop a Mobile App and push notifications to the relevant ...
yoni349's user avatar
  • 133
0 votes
1 answer
325 views

Multiple users and one device, logged in/logged out use cases for contact key registration

Im dealing with the following use case for 3 different users on a single shared device: User A installs the app and logs into the app User A logs out User B starts using the app in guest mode without ...
SFguy's user avatar
  • 1
0 votes
1 answer
127 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
68 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
1 vote
1 answer
94 views

Mobile Push QUESTION - Contact Key

My DEV app team is making a change to the app so that unknown contacts will not be included in MC's all contact. This is done via the function setDelayRegistrationUntilContactKeyIsSet(true). How can ...
Giulia Orru IT's user avatar
2 votes
1 answer
192 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
0 votes
0 answers
297 views

Marketing cloud Mobile Push app connection

I'm currently connecting my client's app into MobilePush to send push notifications. I've added APNs.p8 Auth Key, Key ID, Team ID, Bundle ID. For both IOS & Android, it seems enabled as below. ...
Luna's user avatar
  • 27
0 votes
1 answer
284 views

In-app message not working SFMC SDk 8.0.7 android

My app is receiving push messages but is unable to receive in-app messages. I have implemented SFMC SDK from here. I have set delay registration until contactkey is set to true.Followed the salesforce ...
Zobaer Hossain's user avatar
2 votes
1 answer
501 views

VerifyError: Verifier rejected class com.salesforce.marketingcloud.config.a

I bumped version from SFMCSdk Android (8.0.5) to SFMCSdk Android (8.0.8) and started seeing this error message in my emulators on firebase cloud. I also see the same error locally on my emulators. ...
watts_up's user avatar
0 votes
0 answers
180 views

SalesforceMobileSDK-Android v10.2.0 crashing on Android 11 devices

The SalesforceMobileSDK-Android v10.2.0 is crashing on Android 11 devices with the below error message: Attempt to invoke virtual method 'java.lang.String com.salesforce.androidsdk.accounts....
Ankur's user avatar
  • 11
1 vote
0 answers
223 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
807 views

Send API Triggered MobilePush to mobile device using REST API [closed]

I am trying to send a Push notification to a sample android application which I created from Android Studio for testing. I Added my application in FireBase Console and getting my Device Token from ...
SFMC Learner's user avatar
0 votes
0 answers
181 views

Marketing Cloud Mobile SDK - issue with in-app messages

I am trying to implement the latest version of the Marketing Cloud Mobile SDK to start using In-app message and Inbox. I am facing some issues MarketingCloudSDK Version(3.6) -> In This Build Push ...
Filippa's user avatar
0 votes
1 answer
762 views

Marketing Cloud Push SDK Android - MC Notification arrives only in service class and does not display on device

I have an Android mobile app in which I have implemented Marketing Cloud Push SDK (https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/, version 8.0.7) and Firebase Cloud Messaging (...
Gianluca Tessitore's user avatar
0 votes
2 answers
645 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
132 views

Multiple users single device - Mobile PUSH

I have a scenario, User A Logs out of the mobile app, and user B log-in the app using the same device. Then what will happen on the back end New Device ID will be created and assigned to User B or ...
Ex- SFMC's user avatar
0 votes
1 answer
136 views

Android App is crashing after allow me screen during Login process

I am using mobile SDK v10.1.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 ...
Vinayak Khedkar's user avatar
2 votes
3 answers
733 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, ...
Rubén's user avatar
  • 47
1 vote
0 answers
99 views

Crash happening in SDK (iOS/aOS)

My team and I are launching a new version of SFMC SDK. After launching SDK 3.1.0 version, we have recorded 106k times of flashbacks and errors all pointing to not enough memory (Cursor window ...
Acpapi's user avatar
  • 11
0 votes
2 answers
1k views

"Server Error - Can't connect to the server: unsupported URL" received on iOS mobile App

I'm not a programmer but Salesforce suggested I post this question here and hoping someone can point me in the right direction. We have the same iOS mobile app and Android app for our Experience Cloud,...
Ellen Henderson-Smith's user avatar
1 vote
1 answer
178 views

Batch sync up - slow performance/performance improvement

Version of Mobile SDK Used: 9.2.1 Issue found in Native App or Hybrid App: Native App OS Version: All Device: All Steps to reproduce: syncUp We use SmartSync/SmartStore to sync offline data with ...
PatrykK's user avatar
  • 21
1 vote
0 answers
151 views

Salesforce Mobile SDK React Native: Invoke Biometric/Pin Prompt after timeout in react native app

Mobile-SDK version: v10.0.0 Platform: android, iOS React Native: 0.67.1 We are developing a react native app using salesforce SDK and have a requirement where we want the user to enter his/her pin/...
Anurag Tiwari's user avatar
2 votes
1 answer
422 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 ...
Rubén's user avatar
  • 47
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
0 votes
1 answer
37 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 ...
Dinagar N's user avatar
0 votes
0 answers
31 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
Dinagar N's user avatar