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 ...
0 votes
1 answer
1k views

Alternate way to access lightning pages in the mobile browsers

We have build an app in which we have integrated the Sales Force mobile sdk for Android and iOS. We have integrated lightning pages in the app. Since the Mobile web experience is retired. Is there a ...
7 votes
1 answer
2k views

Hybrid Remote App can never login again after a session timeout

I have a Hybrid Remote app built with Mobile SDK 3.1. I've created both an iOS and Android version of the app, and both exhibit the same behavior. To simplify the discussion below, I'll refer to the ...
0 votes
0 answers
25 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 ...
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,...
0 votes
0 answers
163 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 ...
1 vote
1 answer
878 views

Getting Push Notification multiple time

I have created Apex Trigger for inserting and updating Opportunity for android app. After login I am registering device for push notification and adding registration Id to MobilePushServiceDevice ...
0 votes
0 answers
69 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 ...
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 ...
1 vote
0 answers
41 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 ...
-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 ...
0 votes
0 answers
89 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 ...
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 ...
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 ...
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() { ...
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 ...
2 votes
0 answers
409 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 ...
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......
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 ...
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 ...
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 ...
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 &...
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. ...
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"...
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() {...
5 votes
0 answers
159 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 ...
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 <...
0 votes
1 answer
176 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 ...
0 votes
2 answers
399 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 ...
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 ...
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. ...
0 votes
0 answers
299 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. ...
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/...
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 (...
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 ...
0 votes
2 answers
646 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 ...
2 votes
1 answer
194 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 ...
0 votes
1 answer
285 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 ...
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....
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/...
0 votes
2 answers
808 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 ...
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 ...
3 votes
1 answer
432 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 ...
2 votes
3 answers
734 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, ...
0 votes
1 answer
763 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 (...
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 ...
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 ...
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 ...
2 votes
0 answers
940 views

Salesforce to Azure AD named credential failing after access token expires

Sf azure:Refresh token exchange to renew access token process (not working) I am facing an issue where I have a named credential configured in Salesforce using auth provider (using openid connect for ...
0 votes
1 answer
730 views

Download of file in window.open popup

I am working on integrating third party application with Salesforce. As part of a use case, I am opening third party URL window popup using window.open() and hitting download file button present on ...