Hot answers tagged

4 votes
Accepted

JB4A-SDK-Android Device-Registration not working

If you have more than 1 service declared in your application then there's a Google bug in their GcmReceiver which may be getting in your way. See https://salesforce.stackexchange.com/a/128740/16482 ...
Bill Mote's user avatar
  • 4,936
3 votes
Accepted

MobilePush fails to send push notification

Check the docs for Push Configuration Troubleshooting: http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/trouble-shooting/trouble-shooting-push-setup.html One of the most common problems ...
Bill Mote's user avatar
  • 4,936
3 votes
Accepted

Salesforce Marketing Cloud Android SDK Geofencing

Based on the information output in SDK State; please ensure you've added the dependency to your project: http://salesforce-marketingcloud.github.io/JB4A-SDK-Android/location/geolocation.html
Bill Mote's user avatar
  • 4,936
3 votes
Accepted

Marketing cloud Android SDK 7.4.1 crashes when targeting Android 12

MarketingCloud Mobile Push SDK v8.0.0 has been released. This release includes support for Android 12.
Bill Mote's user avatar
  • 4,936
2 votes

ReadyAimFire and the application class

Take a look at this learning app. In particular, pay attention to the dependencies in the app/build.gradle file and the <application> tag in the AndroidManifest.xml file. Without any data ...
Bill Mote's user avatar
  • 4,936
2 votes
Accepted

How can I access to the Android camera directly from Salesforce 1

Ok Guys, I just saw that now with the last version of Salesforce1 v 10.0, and Android 6.0 the option to use the camera is available. I tried this in the same project without any code change.
Edgar's user avatar
  • 1,279
2 votes

How to login on saleforce using webview

By default, any Android app built using the Salesforce1 Android SDK uses a webview for login. I would recommend you install the SDK and look at one of the sample apps e.g. RestExplorer and post ...
Gaurav Kheterpal's user avatar
2 votes
Accepted

Android Deep linking from ET Push Notification

The issue here is that once the SDK receives the Builder from your method it will also call Builder#setContentIntent which will override the Intent you originally set. A workaround for you would be ...
Seth's user avatar
  • 931
2 votes

Why is the Salesforce Snap Ins SDK for Android and iOS so huge?

For the Android app it sounds to me like you are including all of the Sdks when you only want to use chat. If so the below tips may help. I see sizes increases of <2MB when I compile just the chat ...
Steve T's user avatar
  • 21
2 votes
Accepted

Device IDs unique for every install?

There is not. Prior to version 4.9.x the Android SDK hashed together some bits of data and ANDROID_ID in order to generate it's unique device identifier. At the time this decision was made, 2011/...
Bill Mote's user avatar
  • 4,936
2 votes
Accepted

HTML decode Marketing Cloud title

Two things are at play here. First off, the fact that your title is arriving on the device with the apostrophe escaped is a bug in the Marketing Cloud UI that has been fixed, but not released. Second ...
Seth's user avatar
  • 931
2 votes
Accepted

Crash in JourneyBuilder SDK

Unfortunately there is no workaround for this issue, however it has been corrected in version 5.3.x of the SDK. The current release, as of 20171214, is v5.3.2.
Bill Mote's user avatar
  • 4,936
2 votes
Accepted

On Android how to group notifications with Marketing Cloud SDK

Notification groups are not directly supported by the Marketing Cloud SDK, but you can implement the code necessary for them via the SDK's NotificationManager.NotificationBuilder. See http://...
Seth's user avatar
  • 931
2 votes
Accepted

SystemToken/PushToken null when setting MobileMarketingSdk on Android

After setting MarketingCloudSdk.setLogListener(MCLogListener.AndroidLogListener()) I was able to see the exception, and found out that I was setting the senderId wrong within the initialization ...
JRafaelM's user avatar
  • 151
2 votes
Accepted

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

If the plugin is unable to find ic_notification in your Android application's resources then it will not set the NotificationCustomizationOptions in the MarketingCloudConfig. If you haven't done so,...
Seth's user avatar
  • 931
2 votes

Android - Recieving all push notifications, not distinguished by TAG

There are 2-3 Tags set for an Android device by default: ALL and Android for non-debug builds and and additional Tag of DEBUG for debug builds. Similarly, ALL, iOS and DEBUG will be set for iOS ...
Bill Mote's user avatar
  • 4,936
2 votes
Accepted

Push Notification not showing up when app is closed

I'll start by asking the question that I'm sure I already know the answer to. Are you calling the Marketing Cloud SDK's init method from within your Application's onCreate method? If not, then that ...
Seth's user avatar
  • 931
2 votes

Android Switching Business Unit

You can switch to a different business unit be simply calling the MarketingCloudSdk's init method with the credentials of the new business unit. This will signal to the SDK to clean up the existing ...
Seth's user avatar
  • 931
2 votes
Accepted

Can we manually track that a notification was opened?

The Marketing Cloud Mobile Push SDKs support multiple push provider configurations. Take a look at the documentation for such https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/...
Bill Mote's user avatar
  • 4,936
2 votes

How to convert remotemessage to notificationmessage

You will have to parse rm.getData() into the notification elements, but this has nothing to do with Marketing Cloud. See https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/...
Bill Mote's user avatar
  • 4,936
2 votes

In-App Message Crashing after receiving the message

This was resolved in Version 7.3.1. Please update your application to use the SDK v7.3.1 or greater.
Bill Mote's user avatar
  • 4,936
2 votes

Salesforce chatbot not rendering SLDS CSS StyleSheet on Android Webview, what is the wrong with Salesforce

Use the BaseChatMessage. Here is the reference More Detail is given here. Download the SLDS CSS. Then upload it to the Static Resources. Then in the LWC component which extends the BaseChatMessage, ...
herr's user avatar
  • 133
2 votes

How to Run and Debug Salesforce Mobile App on the desktop? (reloaded 3rd time and many years later...)

We implemented our own app, using React Native, without using the Salesforce SDKs. This has some pros and cons. Some cons are that we do not support using Smart Stores (for offline) or Salesforce's ...
Phil W's user avatar
  • 33.1k
2 votes

How to Run and Debug Salesforce Mobile App on the desktop? (reloaded 3rd time and many years later...)

As it stands, all you need to debug and inspect Aura Components for iPhone is somehow in the documentation. I will wrap up how I was able to get a CSS inspector. My steps are from the perspective of a ...
Uwe Heim's user avatar
  • 28.1k
1 vote
Accepted

Journey Builder and custom push handler

We do not have a GCMListenerService defined in the SDK, but there is an odd issue in GcmReceiver.java which our ETPushReceiver.java extends. The GcmReceiver is pulling the service at index 0. You ...
Bill Mote's user avatar
  • 4,936
1 vote

Fixed div in Salesforce1 using lightning components

Try adding transform: translate3d(0,0,0); to the div having the position:fixed; bottom:0; style. It worked for me without using any external script
L. Arora's user avatar
1 vote
Accepted

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

When targeting Android O (or higher) you must choose between one of two options for dealing with notification channels while initializing the SDK. Option 1: Use the default channel configuration ...
Seth's user avatar
  • 931
1 vote
Accepted

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

Support for targeting Android O was not added to the Marketing Cloud SDK until version 5.2.0. Any attempts to use an older version of the SDK while targeting Android O will result in error you are ...
Seth's user avatar
  • 931
1 vote

Why is the Salesforce Snap Ins SDK for Android and iOS so huge?

Calculating the size of a framework on iOS isn’t straightforward, and the size of the binaries on disk do not reflect the end result that will impact your application. These frameworks are “Universal”...
Michael Nachbaur's user avatar
1 vote
Accepted

JourneyBuilder issues - beacon library excluded

Please add the following line to your proguard.cfg file if you're using v5.0.x of the SDK: -dontwarn org.altbeacon.** // if you excluded the AltBeacon Library -dontwarn com.google....
Bill Mote's user avatar
  • 4,936

Only top scored, non community-wiki answers of a minimum length are eligible