Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [android]

Android is an operating system based on the Linux kernel, and designed primarily for touchscreen mobile devices such as smartphones and tablet computers.

1
vote
1answer
523 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 ...
0
votes
0answers
14 views

Restrict the input type = file to capture images through camera only in lightning components/sf1 app

I have requirement where I have to restrict the image upload from SF1 App to camera only.I have tried using below: <input id = "image" type="file" accept="image/* capture=camera" capture="camera" ...
0
votes
1answer
39 views

Android Switching Business Unit

i am facing the situation that inside my Android Application the user could switch between different Business Units. Inside the Documentation for iOS there is a part for switching between Business ...
1
vote
0answers
11 views

Android SDK app should ask login only for first time

I am Android developer, I am using Salesforce SDK for android to connect with Salesforce data. I need to develop time punches app, In this user can punch in and punch out. In this case Android App ...
0
votes
1answer
1k views

Salesforce Hybrid app crashing in Android studio with error: Session 'android': Error Launching activity

I am building a hybrid android app using Salesforce mobile sdk and Cordova. I am following the tutorial given in this PDF of https://bitly.com/1vwq1rL at link https://developer.salesforce.com/...
0
votes
0answers
27 views

Android SDK FileRequests appends incorrect base to path for “connect/files”

Salesforce SDK version: 7.0.0 API version: v42.0 Devices: only on all Androids I have some photo document IDs that I can verify exist. They are downloadable on iOS using the exact same strategy, ...
0
votes
1answer
342 views

How to access mobile camera from android phone vf page

I am trying to access camera from a android phone by vf page.. But is not working. It is asking me to select pic from gallery. It is working fine in iphone. Is there any work around.. <apex:page ...
1
vote
1answer
106 views

Missing required properties: notificationCustomizationOptions error when using MC-Cordova-Plugin on Android

I am implementing the MC-Cordova-Plugin into an app. I am able to create an android build but when running it on a device, I receive this error. I have set this preference inside the android ...
0
votes
0answers
13 views

Salesforce pdf not rendering in google doc view and downloaded file is corrupted

I want to download/View a pdf uploaded in Salesforce cloud. I have a download url for the PDF with me, when I try to render the same using google doc url in android application, its not displaying ...
1
vote
1answer
74 views

Push Notification not showing up when app is closed

i've implemented the SF Mobile Push SDK into my app and the Messages im sending from the SFMC are showing up when the App is in Foreground and Background. When i close the app (for example swipe it ...
0
votes
1answer
332 views

Android ETPush SDK Initialization: What's the purpose of initializing in onCreate()

When integrating the ETPush SDK in our Android APP, we first ignored the advised approach to put the call to ETPush.configureSdk() into the application's onCreate() method, but rather attaching things ...
0
votes
0answers
19 views

Checkbox field is not working in SF1 for ios and Android

I have open loged in in SF1 ios device. I am able to see the checkbox custom field lable, but not able to see the box icox next to the lable. Does anyone know what is the issue?
1
vote
1answer
46 views

SFMC Android Handling Notifications not through the SDK

I'm working with an app vendor who for some reason doesn't want to let the SDK handle the Marketing Cloud push notifications in their onMessageReceived method in their notification service. ...
1
vote
1answer
388 views

Duplicated notifications in Android

when I send a push in firebase console theres a problem of duplicated notifications, because etpushsdk uses gcm and my application fcm. I'm using etpushsdk 4.8.4, is there any previsition when ...
1
vote
1answer
49 views

Migrating from v5.6.2 to v6.1.0

Due to the April 11 deprecation of GCM client and the deprecation of SDK versions below 6.x.x of Mobile Marketing Cloud SDK, we're migrating our SDK versions. I'm having trouble implementing and ...
0
votes
1answer
34 views

How to stop contact registration from Android App to Salesforce marketing cloud?

How do I stop auto contact registration from Android app into marketing cloud. I've already integrated android app with sales cloud and also storing device id etc. in sales cloud. Same is subsequently ...
2
votes
1answer
30 views

Salesforce Marketing Cloud Android SDK Geofencing

I have been following this this guide. However I always end up with the initialisation status of COMPLETED_WITH_DEGRADED_FUNCTIONALITY: InitializationStatus{status=...
1
vote
1answer
474 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 ...
1
vote
1answer
470 views

Lightning component not showing on Salesforce1 menu

I make a component of Lightning and add also in mobile navigation, but still its not showing in salesforce1. My component code is here: <aura:component controller="VKSoft_Light.ContactController" ...
0
votes
0answers
24 views

SalesforceSDK - How do I upload a file with FileRequests class

I am having trouble uploading a file from my custom android app. I am using the Salesforce SDK for android, and as I understand it, I need to use FileRequests.uploadFile to do that. So I am trying to ...
3
votes
2answers
2k views

Fixed div in Salesforce1 using lightning components

Although this may not be salesforce specific issue but its remotely related to Salesforce and occurring only in Salesforce1 mobile app. I am trying to fix a div at the bottom of my screen using the ...
1
vote
1answer
42 views

Android - Recieving all push notifications, not distinguished by TAG

I've setup the MC Sdk, I am recieving notifications as intended. The thing is that if I send a notification only to one specific Tag I am not subscribed to, I get the notification anyway. While ...
2
votes
1answer
34 views

Marketing Cloud Android sdk removeAttribute() changed

Due to the Marketing cloud will stop support GCM push messaging i updated the ExactTarget SDK version 4.5.0 to Marketing cloud SDK version 6.0.2. in Cloud marketing updating documentation file (link ...
0
votes
0answers
31 views

Salesforce1 Android App does not preview Excel file while iOS App does

We have these excel files as attachments and when people view them on an iOS device they are properly displayed but when people view them on an Android device, the app says 'No Preview available for ...
1
vote
1answer
1k views

How to login on saleforce using webview

I am android developer.i make a app using webview to load url salefore login page in webpage i want on webpage click on login button go to activity and get token and url.plz help me.. My activity is ...
0
votes
0answers
143 views

Multiselect picklist type of flow is not supported in Field service lightning mobile application (Android)

Here I have created one visual flow and in that flow i have used 'Multi-Select Picklist' for choose multi record and it's working fine in my desktop & iOS application but not in "Android" ...
0
votes
1answer
113 views

Android push notification opening is not counting

I have an app set up for iOS and Android, and both are working well except for 1 thing, the android app is not counting when the user opens the notification, then MarketingCloud does not take that ...
0
votes
1answer
101 views

SystemToken/PushToken null when setting MobileMarketingSdk on Android

I've finished setting up the MobileMarketingSdk on Android to send PushNotifications, and after a few tries, I'm still not able to have the contact properly added to the contacts, while debugging I ...
0
votes
0answers
42 views

How to change the widgets from Salesforce mobile home page?

Right now when users opens the mobile app, they see My Recent Records,News and My Territory. I would like to change the order and add an additional section 'Agenda' to the home screen. What is the ...
0
votes
1answer
202 views

Salesforce to android Native App connetivity Using Access Token

Unable to get access token. here my code given below public class MainActivity extends Activity { private static final String query = "SELECT Name, Idfrom Account"; private static final String ...
2
votes
1answer
77 views

HTML decode Marketing Cloud title

.setNotificationBuilder((context, notificationMessage) -> { NotificationCompat.Builder notificationBuilder = NotificationManager.setupNotificationBuilder(context, notificationMessage); ...
2
votes
0answers
61 views

NPE causing crash using Android marketingcloudsdk 5.3.+

Facing this kind of crash while using MC 5.3.+ Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.salesforce.marketingcloud.MCReceiver: java.lang.NullPointerException: Attempt ...
2
votes
1answer
144 views

Can't download Salesforce Snap-Ins SDK for Android from Maven

I am trying to follow this documentation I tried to install several features: 'com.salesforce. service:servicesdk:208.4.0' 'com.salesforce.service:chat-ui:1.1.1' 'com.salesforce.service:chat-core:1....
1
vote
1answer
55 views

Salesforce Mobile

I did some research about Mobile SDK and Marketing Cloud SDK, but I didn't understand how can I do the connection between Salesforce and Android, for example. I'm trying to understand if I have to ...
3
votes
1answer
218 views

Salesforce One: can I call another Android App by startActivityForResult from HTML5 (JS)?

I want my Salesforce1 App uses another Android App seamlessly. It is easy if we have access to App code, but with Salesforce1 we have not. So, can I call another Android App by startActivityForResult ...
2
votes
0answers
280 views

Can't use Marketing Cloud SDK for Android with Google Play Services 11.8.0

I'm getting this error when running our app with Marketing Cloud SDK 5.3.+ with Google Play Services 11.8.0: java.lang.NoSuchMethodError: No static method getNoBackupFilesDir Full stack trace: ...
0
votes
2answers
203 views

MCCordovaPLugin - Package R does not exist

I'm traying integrate Marketing Cloud Push Notifications using MCCordovaPlugin with Ionic 3, in iOS works fine, but when I compile for Android, console sends Error: Package R does not exist ...
2
votes
0answers
131 views

Illegal State Exception in Android Startup sometimes

I am receiving a difficult to debug error upon application start up. I have recently updated the sales force sdk from 'com.exacttarget.etpushsdk:etsdk:4.9.4@aar' to 'com.salesforce.marketingcloud:...
2
votes
0answers
124 views

Android Marketing Cloud SDK crashes randomly: MAC stored in civ does not match computed MAC

I'm using the Marketing Cloud SDK v5.4 for Android Push Notifications. My implementation is modeled completely after the sample code. On App start, the sdk initializes and I'm able to receive push ...
0
votes
1answer
203 views

On Android how to group notifications with Marketing Cloud SDK

Since Nougat, Android gives us the option to group our push notifications. On a NotificationCompat.Builder there is a a .setGroup({groupId}) method we can use to specify a group and developers also ...
0
votes
1answer
230 views

Send Json data in the push notification (MarketingCloud) [closed]

Is it possible send json data in the push notification? Exist any sample how to work plus using MarketingCloud steps to fire push?
0
votes
1answer
312 views

Cannot receive push notification in iOS device

I am using this plugin : https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin and I want to send push notification to both iOS and Android devices. The scenario is this : I open the app ...
2
votes
0answers
311 views

Marketing cloud push notification not visible on Android

I've implemented Marketing Cloud Mobile Push, we have multiple SDKs however I'm letting Marketing cloud handle tokens, all I'm doing is using a custom GCMListenerService to process my push if its from ...
2
votes
0answers
408 views

Problems with multiple notifications on Android

I'm having trouble getting a second notification to show up after the first one was successful. In my code, I set the OpenDirect Activity: .setOpenDirectRecipient(OpenDirectActivity.class).build(),...
1
vote
1answer
237 views

JBASDK Android cannot resolve

I'm trying to integrate the JBASDK for android in android studio following this guide: http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/sdk-implementation/implement-sdk-google.html but ...
2
votes
1answer
49 views

Crash in JourneyBuilder SDK

We are seeing this crash happen quite frequently in our production application. IS there anyway we can work around this because as of right now, it is our highest crash with our latest release. We are ...
1
vote
0answers
54 views

Setting value in componet is slow in android s1 APP

var start = new Date(); component.set("v.isLoading", false); window.alert(new Date() - start); The execution time of above line(excluding the timer) is 180 ms on the desktop while it is taking ...
0
votes
1answer
24 views

ETPush sales force notification not working in Android O

I have used following code for notification but it is not working in android O. Any help would be appreciated. ETPush.configureSdk(new ETPushConfig.Builder(getApplication()) ...
2
votes
1answer
332 views

Crash when using Marketing Cloud Mobile Push Android SDK v5.1.x and targeting Android O (Oreo)

When using Marketing Cloud Mobile Push Android SDK v5.1.x and targeting Android O (Oreo) and initializing with: MarketingCloudSdk.init(this, MarketingCloudConfig.builder() .setApplicationId("...
1
vote
1answer
363 views

Crash in Marketing Cloud Mobile Push Android SDK v5.2.x When Targeting Android O (Oreo)

We are getting the following crash when targeting Android O (Oreo) when using the Marketing Cloud Mobile Push Android SDK v5.2.x and initializing with: MarketingCloudSdk.init(this, ...