Questions tagged [sfdcmobilesdk-android]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
66 views

ETPUSH addAttributes not working

I'm using SDK in my android app, and I'm trying to set attributes (already created in MC) but MC never shows me value I set in my android app. etPush.addAttribute("MunicipioResidencia","...
0
votes
1answer
83 views

Creating hybrid local app in CMD using mobile SDK

I am trying to create hybrid_local app for which I have followed the following steps in Windows environment: Installed JDK Installed Android Studio 2 Installed Android SDK from Android Studio 2 ...
0
votes
1answer
284 views

Open visualforce page in a browser via sforce.one.navigateURL()

I am working on integrating third party application with Salesforce. As part of a use case, I am looking for opening a visualforce page using anchor tag in a browser from an Android mobile app - ...
0
votes
1answer
411 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 ...
1
vote
1answer
124 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....
1
vote
0answers
263 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 ...
1
vote
0answers
33 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?
1
vote
1answer
177 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 ...
1
vote
1answer
662 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 ...
1
vote
0answers
58 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/...
3
votes
1answer
6k 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 ...
0
votes
1answer
223 views

Mobile SDK: The REST API is not enabled for this Organization

I created a trial account on Salesforce Developed an Android app using Trailhead: https://trailhead.salesforce.com/mobile_sdk_native_android/mobilesdk_android_getting_started When I try to login ...
2
votes
2answers
452 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/...
1
vote
2answers
344 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 ...
1
vote
0answers
116 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....
0
votes
0answers
55 views

Getting this crash in Salesforce MobilePush SDK

I'm getting the following fatal exception reported from the ET SDK, is there something I can do to avoid this happening? Fatal Exception: java.lang.NoSuchMethodError: Ljava/security/cert/...
2
votes
0answers
389 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 ...
0
votes
2answers
70 views

Offline management Syncup in android

I am working on SmartSync for Android for Lead Object. I am able to sync down but nothing gets synced up. I am not seeing any errors, not sure what the issue is. Has anyone experienced this before? ...
1
vote
1answer
437 views

React Native Mobile SDK

I have followed the instructions to create a react_native sample app on this page Everything works, but what I am trying to understand is where does the oauth.authenticate() Store the tokens, and ...
0
votes
1answer
108 views

Getting started with Hybrid Mobile App Development on Salesforce - Unable to create an app using forcedroid create command

While following the 'Get Started With Hybrid Development' trail on TrailHead I am facing problem on step Create a Hybrid App - C:\Users\anand.gupta>forcedroid create Enter your application type (...
1
vote
0answers
39 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 ...
1
vote
1answer
784 views

ByPass Login in Salesforce SDK

I have to create one mobile application using Salesforce mobile SDK where user does not need to input the login credentials to access the data. For this the scenario I am thinking of that I can create ...
6
votes
1answer
804 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 ...
0
votes
2answers
232 views

SENDER_ID Error While Creating Hybrid App Using Forcedroid

I created a few hybrid apps before and they got created and are running just fine. But, When I tried to create an app today it is giving me an Error: Variable(s) missing: SENDER_ID As shown below. ...
0
votes
1answer
127 views

Android SDK - Remote start page without requiring shouldAuthenticate?

I'm running into an issue with configuring the Salesforce SDK for Android. We have a Force.com site that does not require logging in to access (Guest User can open the Visualforce page). I'm trying ...
0
votes
1answer
55 views

Do Salesforce Officially Support Mobile SDKs?

Just want to confirm that if I have a premium account of Salesforce; do they provide support for mobile SDKs. The SDKs are opensource available at github; please confirm if Salesforce Support will ...
1
vote
1answer
130 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....
5
votes
1answer
79 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. ...
1
vote
1answer
510 views

Not redirecting to Salesforce login page while opening the app

forcedroid version 4.0.0 cordova version 5.4.1 phonegap version 5.3.9 cordova platform version android 5.0.0 mac OS X Yosemite 10.10.5 I followed the below steps to create a new app, $ forcedroid ...
0
votes
1answer
257 views

Cordova SalesforceSDK - Icons & splash screens not working

I am developing a hybrid android mobile application using Phonegap/Cordova and Salesforce mobile SDK. I am trying to change the icon and splash screen but it is not working as expected. Reference ...
1
vote
0answers
70 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 ...
2
votes
0answers
236 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 { "...
0
votes
3answers
909 views

Robolectric unit tests fail with the same message using Exacttarget:4.0.4

This does not happen if I use any 3.5.x version, but it occurs on every 4.x version. Proguard changes have been made according to https://goo.gl/yMz3NL. All unit tests fail with the following message ...
1
vote
1answer
203 views

Empty push notification on install using Exacttarget:3.5.0 and android 5.0

I've successfully configured ET 3.5.0 in my app and have been able to send push notifications to the device from the ETMC as well. Unfortunately, there's an empty push notification on my device each ...
2
votes
0answers
323 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 ...
5
votes
0answers
104 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 ...
-2
votes
2answers
753 views

How to fetch latest 5 attachments from Contact Object and display in Visualforce page?

I want to fetch latest 5 attachments from contact object and display those in visualforce page.. Please help me on this requirement.
2
votes
1answer
248 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 ...
1
vote
1answer
327 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 ...
1
vote
1answer
623 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 ...
2
votes
1answer
57 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 ...
0
votes
1answer
95 views

Why aren't the tags and attributes we send displayed in the ET dashboard despite being visible in our logs?

We are testing our integration of Exact Target on Android and are unable to see the data we are sending in the Exact Target dashboard. We have verified that the data is being sent by looking at the ...
2
votes
1answer
6k 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#...
2
votes
1answer
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\...
0
votes
1answer
773 views

issue while running command “cordova build android”

I am getting error as [Error: Failed to run "java -version", make sure that you have a JDK installed. You can get it from: http://www.oracle.com/technetwork/java/javase/downloads. ] ERROR building one ...
0
votes
1answer
746 views

Mobile SDK - Android aapt error

I'm trying to package an android hybrid app using the steps here https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin. This all runs fine and the app seems to be good, but when I try to ...
2
votes
2answers
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 ...
1
vote
1answer
151 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 ...
2
votes
2answers
2k 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 ...
1
vote
1answer
716 views

RestRequest Create Custom Object

I'm using the android salesforce SDK. I am connecting to a sandbox and am trying to create a custom object, however I keep getting a 404 error: ( 4097): [241] BasicNetwork.performRequest: Unexpected ...