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
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
6 votes
2 answers
593 views

Salesforce Mobile SDK - refresh token validity period

Is there any document or reference about the validity period of refreshtoken of Mobile SDK? I have a hybrid local app and if I let the app to be idle for a while and use back, it's failing with the ...
highfive's user avatar
  • 6,241
6 votes
1 answer
889 views

Cannot create working Remote Hybrid Android app with Mobile SDK 4.1

I've been trying for days now to get a working Remote Hybrid Android app to build for Android using the current (4.1) build of the Salesforce Mobile SDK. I've made some progress (I think), but remain ...
Jason Clark's user avatar
  • 11.9k
5 votes
1 answer
81 views

Can't create new project with Mobile SDK 3.3 with Cordova 5.0

I recently upgraded my Cordova installation to 5.0.0 - now I'm trying to create project using forcedroid and getting the following error Copying template files... Project successfully created. ...
user10740's user avatar
  • 215
5 votes
1 answer
424 views

Mobile App for Portal Users

Has any one developed mobile app for Partners using Salesforce Mobile SDK? If yes, can you please share how you got them access? Thanks!
Manohar's user avatar
  • 81
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
3 answers
939 views

Salesforce update 6.x.x(Updating to FCM) :Failed to retrieve InstanceId from Firebase message,systemToken always null

I am in the process of updating to the latest Salesforce SDK 6.3.5(Also the same with 6.4.0,latest version) from our old sdk which used GCM. I have gone through the steps as mentioned below: https://...
Anupama VK'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
4 votes
2 answers
477 views

Journey Builder for Apps Android SDK with firebase

I'm new to Android development and I'm trying hard to develop an app to get a push from salesforce marketingcloud. I've tried to follow some of this LearningAppAndroid procedures. But without result. ...
Henrique Arguto's user avatar
3 votes
1 answer
13k views

Developer Edition: The REST API is not enabled for this Organization

I created a developer account here Followed Creating a Connected App on https://trailhead.salesforce.com/modules/mobile_sdk_native_android/units/mobilesdk_android_getting_started Cross checked if ...
Archie.bpgc's user avatar
3 votes
1 answer
598 views

salesforce mobile sdk access to UserInfo class

I have created a mobile app in Android and iOS using the Salesforce SDK. I want to add functionality of multi currency by using isMultiCurrencyOrganization() method from the UserInfo class. Now I am ...
user2100170's user avatar
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 ...
Sinan Kozak's user avatar
3 votes
1 answer
161 views

Lightning components inside Salesforce Mobile SDK

I am pretty new to mobile Development, so i have started with this Trail and created hybrid_remote app. Everything works great as i could able to access the data trough VF page. Then I wanted to ...
Narendra Nimmana'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
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, ...
Rubén's user avatar
  • 47
2 votes
2 answers
1k views

not able to create campaign record even I have crud PERMISSION

I want to create campaign record via script as new button was not there.But when i insert record it says Line: 1, Column: 20 Field is not writeable: Campaign.Name Even i am system admin .I have full ...
Shivani Tanwar's user avatar
2 votes
2 answers
3k views

Use REST API to authenticate my customer community user login? Or bypass mobile SDK webview login page?

I'm a mobile app developer and my task is to develop mobile apps based on the existing website that uses salesforce. So, basically the same functionalities on the website to be used for native mobile ...
Syed M's user avatar
  • 61
2 votes
1 answer
308 views

Unable to open Mobile SDK 2.3 project in Android Studio

My Android Studio does not recognize any of the sample apps with Force.com Android SDK as a valid project. What steps do I need to take to open and run it there?
user5094's user avatar
  • 203
2 votes
4 answers
3k views

Unable to build Android Hybrid App from tutorial; missing steps?

I am trying to build an Android Hybrid Remote app using the Salesforce Mobile SDK. I have an iOS Hybrid Remote app working, so I expected create the app, set the config (consumer key, oauth redirect ...
Jason Clark's user avatar
  • 11.9k
2 votes
1 answer
144 views

JB4A-SDK-Android 5.3.0 Attribute.Create(String, String)

I'm attempting to expand our basic implementation of the Marketing Cloud SDK in our Android app. We've successfully been using it to send push notifications, and are now adding some attributes so we ...
Keab42's user avatar
  • 133
2 votes
1 answer
2k views

Error: No resource found that matches the given name (at 'icon' with value '@drawable/sf__icon')

I get the following error when I try to import the VFConnector project from https://github.com/forcedotcom/SalesforceMobileSDK-Android SalesforceMobileSDK-Android\hybrid\SampleApps\VFConnector\...
user4402671's user avatar
2 votes
2 answers
1k views

Customizing Login Page for Mobile SDK Hybrid Android App

I have a Hybrid Remote Android App built using Mobile SDK 3.1. It is configured to use a custom community login page (it is the only entry in res/xml/servers.xml). It's working fine, except for two ...
Jason Clark's user avatar
  • 11.9k
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 ...
Matt's user avatar
  • 43
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
2 votes
2 answers
502 views

How to link a new Contact/Case to an existing Account?

I'm using the Android SDK, Chat functionalities, currently I'm able to create a new Contact, Case and link those two. How can I link the created Contact/Case to an existing account? The following ...
skimos's user avatar
  • 31
2 votes
1 answer
793 views

Salesforce Mobile SKD Gradle Build Error, Android Native App Example forcedroid trailhead

Cannot get Android Native app to run, following Salesforce Trailhead Mobile module here: Salesforce Android Mobile Walkthrough. I have installed Java SDK 1.8, and Android Studio 2.3. Using NPM version ...
zan_li's user avatar
  • 31
2 votes
1 answer
303 views

I retrieve a JSONArray with JSONArrays in it instead of JSONObject using the Salesforce Mobile SDK

I'm using the SalesforceMobileSDK and I'm having trouble querying my smartstore soup in my native android application. When I query my soup I recieve a JSONArray with JSONArrays in it, while it has ...
Evi Favaits's user avatar
2 votes
1 answer
7k views

Finished with non-zero exit value 2

i followed the guidelines on how to setup using exactTarget Android Library following this http://code.exacttarget.com/apis-sdks/journey-builder-for-apps/sdk-implementation/register-your-devices.html#...
Jono's user avatar
  • 131
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 ...
Gabriel Araújo'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
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 ...
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
2 answers
562 views

JB4A-SDK-Android Device-Registration not working using FCM (Firebase Cloud Messaging)

I have implemented JB4A-SDK-Android following the links below: salesforce-marketingcloud.github.io/JB4A-SDK-Android/sdk-implementation/implement-sdk-google.html salesforce-marketingcloud.github.io/...
Cassiano Monteiro's user avatar
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
1 answer
250 views

MessageOpened not woring on Android and iOS 10

I have implemented Salesforce SDK on iOS & Android, the MessageOpened is ok after iOS 9 device received push notification. But it's not working with iOS 10 device & Anroid device. Any one has ...
Jared Chu's user avatar
1 vote
2 answers
91 views

Trouble with Android hybrid_local app Authentication

I'm developing Android hybrid_local app with the forcedroid sdk. I have two questions hope you can kindly help me out. It's always asking to send verification code in the auth process which I need to ...
highfive's user avatar
  • 6,241
1 vote
1 answer
194 views

Salesforce Connected App - Push Messaging Android GCM API Key

I am trying to enable the push messaging in a connected app. Can someone explain me what is this API Key and how do I get the androidPushNotificationClientId? API Key - https://developer.salesforce....
moustacheman's user avatar
1 vote
1 answer
164 views

Query to read soup data for custom object in Android app

I am looking for some examples for Android app of how can I write a query to retrieve data from a custom object soup that I created. Is it diferent than standard object soup structure Can anyone give ...
Manish Kumar's user avatar
1 vote
2 answers
659 views

404 error when making SOSL queries from native mobile applications

I am developing a native android app using the mobile sdk. I am trying to make a search query like this RestRequest req = RestRequest.getRequestForSearch("v20.0", "FIND {"+searchString+"*} IN ALL ...
lowcoupling's user avatar
1 vote
1 answer
404 views

Mobile Marketing Cloud SDK has dependency on outdated Firebase SDKs [closed]

on May 11th, Google has released a new version of Firebase Cloud Messaging SDK: 22.0.0 for Android -> https://firebase.google.com/support/release-notes/android#messaging_v22-0-0 8.0.0 for iOS ->...
PiotrW's user avatar
  • 11