Skip to main content

Questions tagged [sfdcmobilesdk-android]

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

94 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
Jason Clark's user avatar
  • 11.9k
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 ...
Fin-luca Spiers's user avatar
5 votes
0 answers
120 views

Bluetooth Permission removal on JB4A on Android < 5.0

In version 3 of the ExactTarget JB4A library that we use for push notifications, there was a dependency on the IBeacon library which imposed a requirement on the Bluetooth permission for the app. In ...
Simon LE LARGE's user avatar
4 votes
0 answers
2k views

ContentVersion.VersionData or ContentDocument.LatestPublishedVersion.VersionData doesn't return the base64 body

We're using mobile SDK and want to retrieve the SOUP of ContentVersion bodies(VersionData) to be able to generate the images when our users are in offline mode. According to the documentation about ...
Taras Buchynskyi's user avatar
3 votes
0 answers
120 views

Firebase version of latest Salesforce Service SDK is outdated

We have noticed that latest Service SDK https://github.com/forcedotcom/ServiceSDK-Android/releases/tag/224.0.0 seems to still be using Firbase 17.3.0. Can anyone know when the Service SDK team will be ...
Loregge Kandt's user avatar
3 votes
1 answer
271 views

Salesforce Polymer Mobile UI on Android Chrome gives blank page

I saw this article Secure, Offline, Cross-Platform Apps with Salesforce Mobile SDK and Web Components and found it very interesting, when I try the sample application Heroku Hosted Version of the ...
Thibault Jacobs'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
2 votes
0 answers
93 views

Mobile App Event not triggering Journey

We have enabled mobile app events in our salesforce instance. We have followed all the required procedures to setup the events, creating and uploading a csv file, etc as shown below. Then we created a ...
Victor Benetatos's user avatar
2 votes
0 answers
232 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 ...
Mahesh Nikate's user avatar
2 votes
0 answers
939 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 ...
mohit chhabra's 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 ...
Stepan's user avatar
  • 21
2 votes
1 answer
620 views

Salesforce mobile automation- Appium does not identify individual elements in WebView

We are using Selenium and Appium to automate salesforce mobile app on mobile devices. On Android devices Appium is not able to identify individual elements within Webview, entire screen is identified ...
Uday's user avatar
  • 21
2 votes
0 answers
78 views

Salesforce Android SDK - SyncDown creates two records of custom object

Below is the scenario which we are facing now. Any help would be highly appreciated. Step 1: Create account rest request Step 2: Request sent out and received by salesforce and record is created ...
harnish's user avatar
  • 21
2 votes
0 answers
1k views

The Rest API is not enabled for this Organization

I signed up using: https://developer.salesforce.com/signup I read that developer account by default have API Enabled. And looks like it is actually enabled. Manage Users -> Profiles -> System ...
user37161's user avatar
2 votes
0 answers
271 views

The log out issue in Salesforce mobile SDK android - Hybrid

When we log out, redirected to login page, in that login page if we login again redirected to login page again. If we close and open the app again, logins with out asking for password { "...
Sarath Babu's user avatar
2 votes
0 answers
342 views

I'm trying to perform the Trailhead Mibile SDK trail of creating a hybrid app but I get an error

When I run the command cordova build, I am getting an error. I added the versions to the manifest.xml file but that didn't see to have done anything. Can someone assist? Microsoft Windows [Version ...
Jennifer Lee's user avatar
2 votes
1 answer
69 views

iOS: MobileSDK3.2: Getting the Credentials after authenticating

I am newbie & trying to integrate SaleForce into our existing APP, need help in getting the credentials after authenticating. I am using the latest Mobile SDK 3.2 I followed the Mobile SDK ...
SKG's user avatar
  • 27
2 votes
0 answers
243 views

Unable to create Sqlite db on Samsung tablet on deviceready event

Using the salesforce mobile SDK's test app on a Samsung tablet, I get an error when I attempt to create a Sqlite db in the deviceready event. I tried moving the logic before and after the ...
Brian Dunzweiler's user avatar
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
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 ...
Samir Sayyed'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
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
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
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
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
1 vote
0 answers
152 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
1 vote
1 answer
230 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 ...
Vijay's user avatar
  • 11
1 vote
0 answers
38 views

Information about Salesforce Mobile SDK

Every time, i try to run the 'forcehybrid create' command for building a hybrid app, the command fails as it tries to connect to GitHub and we have a restriction to access GitHub. Is there any way, ...
Pavan's user avatar
  • 11
1 vote
1 answer
736 views

How to Re-register Device to Marketing Cloud When Contacts Deleted

I want to ask if Marketing Cloud SDK (Android & iOS) is able to re-register mobile device to Contact in Marketing Cloud after contacts in MC are deleted? If yes, how should I modify the code? I ...
Gabriela Devita's user avatar
1 vote
0 answers
42 views

Community vs Site URL

Most of the documentation around setting up the mobile SDK references utilizing the community URL. We currently use a Site rather than a community and have been trying to use that site url instead of ...
Tyler's user avatar
  • 11
1 vote
0 answers
983 views

Salesforce Marketing Cloud Mobile SDK with Firebase

Anyone of you have experience implementing Salesforce Marketing Cloud Mobile SDK with Firebase? We are using FCM and have tested Marketing Cloud Push SDK version 5.5.0 with Google Play Service SDK ...
wil's user avatar
  • 21
1 vote
1 answer
605 views

Push notifications to an Android app since Google moved GCM to Firebase?

First the short version: has anyone managed to get push notifications from Salesforce working with an Android app, since Google moved Google Cloud Messaging into Firebase Cloud Messaging? A friend of ...
GBreavin's user avatar
  • 529
1 vote
1 answer
137 views

NullPointerException ETPush.getInstance Android SDK 4.9.2

We updated the com.exacttarget.etpushsdk:etsdk to version 4.9.2. After we released the new version of our App we see several NullPointerExceptions that are caused by the SDK. Fatal Exception: java....
Ralph HM's user avatar
1 vote
0 answers
302 views

To use the smartsync to store the data in local soup android native SDK

Below is my code for creating the soup on locally and sync down and store the data in local soup. Below is my code calling onCreate method. Salesforce data is not syncdown. Can anyone help me for ...
mobility's user avatar
1 vote
0 answers
37 views

Where can I download the latest SDK (4.9.2)

In Github (salesforce-marketingcloud/JB4A-SDK-Android), I can only see etsdk-4.6.1.jar. In release history, the updated version is 4.9.2. How can I download the latest SDK, 4.9.2?
Feiyang Liao's user avatar
1 vote
0 answers
75 views

Android Mobile SDK: Adding/Fetching Contact Image

The PhotoUrl I get from the API is like this: /services/images/photo/0036F000024S6IMQA0 I tried accessing it by adding the API Url: https://ap4.salesforce.com/services/images/photo/...
Archie.bpgc's user avatar
1 vote
2 answers
381 views

"Trailhead Native Android" "forcedroid create failed Too many arguments."

I'm trying to go through "Trailhead Native Android" and I'm getting stuck in the first chapter on "forcedroid create". the error I'm getting from the command line is "forcedroid create failed Command ...
user8310's user avatar
  • 121
1 vote
0 answers
145 views

Getting this crash on my crash reporting tool

Fatal Exception: java.lang.IllegalArgumentException: averageBytesPerChar is greater than maxBytesPerChar at java.nio.charset.CharsetEncoder.(CharsetEncoder.java) at java.nio.charset....
Manas Prasher's user avatar
1 vote
0 answers
43 views

ERROR Cordova Salesforce andoidSDK app

I successfully create application using command line. forcedroid create Enter your application type: hybrid_local Enter your application name: myApp Enter the target directory of your app : Provided ...
Piyush's user avatar
  • 142
1 vote
0 answers
78 views

hardcoded security token to login in salesforcesdk android

I am using Salesforce Android SDK. I want to authenticate in the application with my own salesforce email and security token. Is there any way that I can hard code my email and security token in the ...
Sandy's user avatar
  • 11
1 vote
1 answer
387 views

Salesforce SDK is not opening login screen

I am new to salesforce i have to interface salesforce with my android app. I am following this tutorial Interfacing Salesforce with Android I have successfully created connected app on salesforce now ...
CodingRat's user avatar
  • 111
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 ...
Rohith's user avatar
  • 41
1 vote
0 answers
432 views

Android ionic hybrid app missing SalesforceOAuthPlugin

I'm trying to buid a simple android SFDC app using Ionic, I used this https://github.com/driftyco/ionic-starter-salesforce when I try it in the browser using ForceServer it works fine but when I try ...
Thibault Jacobs's user avatar
1 vote
0 answers
1k views

fields required to create a task through Rest API in native android app

I am getting error 405 when trying to create a new task through the rest api in a native android app see 405 Error when Trying to Create Task through Rest API Now I am guessing it might depends on ...
lowcoupling's user avatar
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 ...
Raas's user avatar
  • 17
0 votes
0 answers
154 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
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 ...
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
0 votes
0 answers
88 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
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