Questions tagged [salesforce-sdk-android]

The tag has no usage guidance.

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

forcehybrid create error

friends! I am going throuh the trail "Develop with Mobile SDK". I installed Android Studio and a bunch of Android SDKs: I have set ANDROID_HOME to C:\Users\%USER%\AppData\Local\Android\Sdk. ...
Vladimir Egikyan's user avatar
0 votes
0 answers
75 views

Salesforce push notifications not triggering in-app event listeners on Android

We are sending our push notifications from Salesforce Marketing Cloud Mobile Push and they are being delivered to both Android and iOS. We are also listening in on those push notifications inside our ...
Jrmin's user avatar
  • 1
1 vote
1 answer
43 views

Android SDK: APP_FOREGROUNDED and APP_BACKGROUNDED behaviors is never triggered

So, I have implemented SFMCSDK inside Application onCreate() the way it is written in a documentation, also aligned code with sample projects and another project where functionality works as expected. ...
Aleksey Chernyshev's user avatar
0 votes
0 answers
137 views

Error when trying to integrate with salesforce mobile push sdk in Android Studio

Im getting this error when trying to integrate with SF mobile push sdk in Android platform. Any clue how to resolve this? I have tried changing the gradle/JVM/Kotlin version of the project but no luck....
SFguy's user avatar
  • 1
0 votes
1 answer
116 views

SFMCsdk Notification do nothing after app got killed. In onCreate method of Application class. Android

To init an SFMCsdk we need some data for initialization. We are getting required data from our API covered with RxJava. So, when request is made, and data is received then initialization is finished ...
Vad's user avatar
  • 1
1 vote
1 answer
123 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
  • 33
0 votes
0 answers
98 views

App is getting crashing after login in specific device

We recently launched a mobile app and we use Salesforce Identity Management. ie all customers have a Salesforce user record and authentication is done is Salesforce. After the launch, some users were ...
Vaibhav Kulkarni's user avatar
0 votes
0 answers
127 views

SalesforceMobileSDK-Android v10.2.0 crashing on Android 11 devices

The SalesforceMobileSDK-Android v10.2.0 is crashing on Android 11 devices with the below error message: Attempt to invoke virtual method 'java.lang.String com.salesforce.androidsdk.accounts....
Ankur's user avatar
  • 11
1 vote
0 answers
152 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
122 views

AbstractMethodError PushModuleReadyListener.ready

I migrated sdk to 8.0.7 (compile sdk 31) and all works good if I launch my app in Android Studio: I see notifications, no any problems. But the app which was built in Bitrise pipeline gets crashes. I ...
Alexey Simchenko's user avatar
0 votes
1 answer
256 views

In the Android sdk 8.0.7, is notification permission sent to the server whenever the application goes to foreground?

The app was previously using 8.0.4, and this time going to update it to 8.0.7. And as a result of checking the log, whenever change the notification permission of the app and bring the application to ...
amagasa's user avatar
0 votes
1 answer
89 views

Android App is crashing after allow me screen during Login process

I am using mobile SDK v10.1.1 for logging into the salesforce credentials, I had successfully logged in and after that allow and cancel button is shown in the screen, I had clicked the allow and ...
Vinayak Khedkar's user avatar
2 votes
3 answers
583 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
1 vote
0 answers
373 views

Debug push error using SFMC SDK

I'm testing to send push notification from SFMC to mobile app using the app configured in MobilePush with FCM server key and APNS p8 Auth Key set. I sent a test push notification using Mobile Push: ...
Ron Ip's user avatar
  • 11
2 votes
1 answer
370 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
0 votes
1 answer
36 views

Android Mobile SDK v9.2.1 closes the App once the allow button is clicked after the login is done

I am using mobile SDK v9.2.1 for logging into the salesforce credentials, I had successfully logged in and after that allow and cancel button is shown in the screen, I had clicked the allow and taking ...
Dinagar N's user avatar
0 votes
0 answers
31 views

App is not 64 bit compliant after adding SF SDK

I am getting error in uploading the APK to managed playstore when SF SDK is updated, I had added the 9.2.1 SDK in android the error is as below
Dinagar N's user avatar
0 votes
0 answers
496 views

Is it possible to expose the "Items to Approve" on Salesforce Mobile App?

I found out that Items to Approve is only on Classic Experience on Salesforce : Is there a way to expose Items to Approve in Salesforce Mobile app (I'm using iOS) too? Right now, the only way I can ...
compski's user avatar
  • 1,251
0 votes
1 answer
208 views

How to properly integrate MobilePush with Objective-C?

I have an integration of MobilePush on my project (React-Native), but with the recent updates i had to update to the latest version of the SDK (8.0.4). But i getting some issues with it. For example, ...
gvNN's user avatar
  • 1
0 votes
1 answer
186 views

Calling setIdentity in SFMCSdkReadyListener crashes with UninitializedPropertyAccessException

I can share more information if needed. At the moment, I don't know what I need to share. The Library version is 8.0.4 Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property ...
Sinan Kozak's user avatar
3 votes
1 answer
416 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
0 votes
1 answer
88 views

Send push message to Android without sound

just wondering am i able to send push notification to android device without notification sound? Like silent push or just without sound it doesn't matter. I don't see any documentation writing about ...
sfuser's user avatar
  • 25
3 votes
1 answer
182 views

SF Chat Android SDK v4.2.2 (latest) still contains legacy support libraries

The latest available version of the SF Chat Android SDK (com.salesforce.service:chat-ui:4.2.2) has not been migrated to AndroidX yet (after 3 years). It still depends on: com.android.support:...
David Miguel's user avatar
1 vote
1 answer
891 views

Second push notification message does not open

I encountered a problem where the app is closed completely, and I start the first notification it opens where it needs to open, but when I tap the second notification, nothing happens. Notification ...
sfuser's user avatar
  • 25
0 votes
1 answer
563 views

Marketing Cloud SDK 8.0.3 crash

I'm using com.salesforce.marketingcloud:marketingcloudsdk:8.0.3 and I have the following crash in some devices: java.lang.IllegalStateException: at com.salesforce.marketingcloud.MarketingCloudSdk....
Rubén's user avatar
  • 47
1 vote
2 answers
341 views

SF Chat Android SDK v4.2.1 (latest) not compatible with Android 12

Steps: Setup an Android project with targetSdkVersion: 31 Include v4.2.1 of SF Chat Android SDK (latest available) implementation "com.salesforce.service:chat-ui::4.2.1" Run the app and ...
David Miguel's user avatar
1 vote
1 answer
784 views

MarketingCloud AndroidSDK 8.0.0 | Tapping notification does not launch the app on Android 12

Steps: Setup an Android project with targetSdkVersion 31 In the same project, include version v8.0.0 of MarketingCloud: implementation "com.salesforce.marketingcloud:marketingcloudsdk:8.0.0"...
virifi's user avatar
  • 13
0 votes
1 answer
1k views

Firebase gives error for duplicate classes with Marketing Cloud SDK

We are trying to integrate Marketing Cloud SDK for our android application.But while building the application its gives us error of duplicate files of firebase.We have already implemented firebase in ...
user104706's user avatar
3 votes
1 answer
909 views

Marketing cloud Android SDK 7.4.1 crashes when targeting Android 12

It appears SDK needs to be updated for Android 12: java.lang.IllegalArgumentException: my.app: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified ...
Matej Drobnič's user avatar
0 votes
1 answer
1k views

Could not resolve com.opentok.android.v3:opentok-android-sdk-v3:3.1.3

What went wrong: Could not determine the dependencies of task ':app:lintVitalPreProdFcmRelease'. Could not resolve all artifacts for configuration ':app:PreProdFcmDebugRuntimeClasspath'. Could not ...
Mahesh Geek's user avatar
1 vote
0 answers
38 views

Deeplinking needed for mobile app in salesforce

We are using salesforce customer community where we implemented custom login and custom change password screen. We are using android native mobile application with backend of salesforce customer ...
Vikas Menon's user avatar
0 votes
1 answer
401 views

Wrap LWC OSS App for Mobile

Is there a way to make an LWC "OSS" app obviously running on Node.js as a Mobile application? (i.e. Cordova). I see you can create an LWC Hybrid app running your "Salesforce" LWC ...
paul.payne's user avatar
0 votes
1 answer
884 views

Android Mobile Push via MarketingCloudSDK not received

I'm working on integrating MarketingCloudSDK on Android. It looks like everything is connecting properly and I see the devices registered. When sending push notifications, it said the message was ...
ordinaryman09'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
0 votes
1 answer
153 views

Android - Marketing Cloud crash on Android 5 and 6

Sorry if I don't provide enough context, but I'm and iOS Developer and I'm posting this because my Android colleague is off for a few weeks 😅 We're getting this crash in our app, which has the ...
Tiago Bastos's user avatar
1 vote
0 answers
32 views

Unable to import Service SDK for Android [closed]

I am getting the below error when selecting build variants in example give in github https://github.com/forcedotcom/ServiceSDK-Android/tree/master/Examples/SnapinsSDKExample Unable to resolve ...
Madhan kumar I's user avatar
1 vote
0 answers
361 views

Gradle build error with Amazon S3 maven repository dependency

I am developing an open-source react native library that it's a wrapper for the Salesforce SDK chat. This library uses a Salesforce maven dependency that is hosted on an AWS S3 Bucket. The problem is ...
Lenoir Zamboni's user avatar
3 votes
0 answers
117 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
2 votes
0 answers
494 views

Forcing Push Message send to a specific Device ID in Journey Builder

After registering a push device in the All Contact List, a random GUID is assigned to the contact created for the device. And when a ContactKey is assigned to that Device ID, it gets assigned to a new ...
Zak Ben's user avatar
  • 443
2 votes
1 answer
112 views

Category Tracking with MarketingCloudSDK

The MarketingCloudSDK (iOS/Android) offers the method sfmc_trackPageView with an item parameter, but how would I track the category? It works in the Web SDK or API, this is about what I miss in the ...
Jerrot's user avatar
  • 133
1 vote
1 answer
100 views

Setting Data Privacy modes from Android MarketingCloud SDK

I need to be able to set one of 3 data protection modes from an Android client that uses the MarketingCloud SDK. I understand based on this that there is no way to do this via the SDK directly, and ...
mondakuwar's user avatar
0 votes
1 answer
539 views

Push Notification not working for android

I am working on an android project that utilizes the Salesforce Mobile SDK. I have recently implemented Push notification, this was working fine till Dec 19, 2019 firebase update. https://firebase....
Manish Kumar's user avatar
4 votes
3 answers
846 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
0 votes
2 answers
665 views

Marketing Cloud SDK Implementation Not Working [closed]

I'm trying to implement the marketing cloud SDK on Android. Doing that, I need to set up firebase in my app. as written in the SDK implementation tutorial, the SDK works only with firebase-core ...
Omri Brandes's user avatar
0 votes
1 answer
828 views

Android - SalesForce marketing cloud SDK proguard issue

In native Android application, I have this release build crash, related to the SalesForce Marketing cloud SDK implementation: Fatal Exception: java.lang.IllegalAccessError: Method 'boolean com....
Stoycho Andreev's user avatar
1 vote
0 answers
784 views

SalesForce - The applicationId is not a valid UUID

I have implemented successfully the SF SDK (ver.6.2.2) on a native Android application and everything seems to be working until we decided to generate our release build. On the debug build we don't ...
Stoycho Andreev's user avatar
0 votes
1 answer
218 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 ...
Lars's user avatar
  • 113
1 vote
1 answer
134 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 ...
Anthony F's user avatar
1 vote
1 answer
365 views

Marketing Cloud PushSDK Attributes not updating

I'm implementing the Android PushSDK. I have the following code in my main activity: MarketingCloudSdk.requestSdk(sdk -> sdk.getRegistrationManager() .edit() .setContactKey("123456"...
mercifulhop's user avatar
0 votes
1 answer
58 views

Restrict the user to get oAuth token from custom app in salesforce

we have an android app which is connected with Salesforce. From the Android app, we will pass the username and password to the salesforce to get oAuth token. I have created one checkbox field i.e. ...
Anup Kage's user avatar
  • 129