Questions tagged [mobilesdk]

Salesforce Mobile SDK is an open-source suite of familiar technologies—like a REST API and OAuth 2.0—that you can use to build great mobile apps

159 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
312 views

Loading Static Resources When Accessing a Page WIth an OAuth Access Token

If you specify the 'web' scope for a connected app it's supposed to grant/provide access to Visualforce pages. I'm authenticating via the iOS mobile SDK and then attempting to use the access token I ...
7
votes
1answer
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 ...
7
votes
0answers
190 views

linker error in xcode on sample hybrid project build

I've tried building 2 of the sample projects into xcode generated via 'forceios create samples'. They both have 5 errors when I try to build the project. Here's an example of one: Apple Mach-O ...
7
votes
0answers
111 views

Salesforce Hybrid Android App

I have created hybrid android app with salesforce mobile sdk. However the lookup functionality of salesforce is not working. In the app if i click the Accounts lookup a new page is opened where i can ...
5
votes
0answers
499 views

SSO between Salesforce - Mobile app - web service provider

I'm trying to understand if it's possible to maintain a SSO session between 3 different elements: Mobile APP (Android/IOS) - developed with Salesforce SDK Salesforce (Identity provider) Web service ...
3
votes
0answers
453 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 ...
3
votes
0answers
103 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 ...
3
votes
0answers
36 views

How to create a Change Sets for multiple Soups to be able to rollback if sync fails

I want to have a distinct "success" value or a remote / local database rollback if sync of multiple soups using the the iOS Mobile SDK (SmartStore / SmartSync) fails. I'm able to identify my not ...
3
votes
1answer
248 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 ...
3
votes
0answers
252 views

smartsync offline query

I have a backbone collection model like this: // The TaskCollection Model app.models.TaskCollection = Force.SObjectCollection.extend({ model: app.models.Task, fieldlist: ["Id", "Subject", "Status", "...
2
votes
0answers
130 views

Using Salesforce mobile SDK how do I call an Apex REST endpoint?

In my scratchorg I've got: @RestResource(urlMapping='/Test/') global without sharing class RestTest { @HttpGet global static String test() { return 'cat'; } } And in workbench I'...
2
votes
1answer
189 views

Cannot build Hybrid Remote release APK with Mobile SDK 8.0

I have an existing Hybrid Remote app built with an older version of the SDK. I need to update it due to known vulnerabilities in the included version of Cordova. After experimenting with updating ...
2
votes
0answers
294 views

How to allow for both mobile push notifications and web app notifications in SFMC and synchronise?

I am looking at how my organisation can: Send push notifications to a mobile app Extend an existing web app (built in Drupal with some Node JS) to receive the same notifications as the mobile app (...
2
votes
0answers
62 views

Exception in lightning component when loading on mobile app web view using lightningout.js

We have a custom mobile app where it loads the lightning components in hybrid web view through lightningout.js. we found an error message displayed in mobile webview for a component, it contains ...
2
votes
1answer
315 views

Create Pre Chat Records (Person Account) using Live agent Mobile SDK

We are implementing the Live Agent functionality on both website and mobile applications. The pre chat form should search for the Person Account Email Address in Salesforce, If it does not exist, ...
2
votes
1answer
196 views

Hybrid Mobile App crash issue on iPad (iOS 12.1.1) - Due to synchronous network calls

PLATFORM AND VERSION iOS cordova v6.3.1, Salesforce Mobile SDK 4.2.0 Devices: App is built to install only on iPad devices. All iPad devices in the enterprise are enrolled under Apple’s Device ...
2
votes
0answers
67 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 ...
2
votes
1answer
231 views

SDK SmartStore Soup Limit

For a proof of concept using Salesforce Mobile SDK, one major requirement is to be load 50k records from Salesforce and store locally offline. After understanding the SmartStore function and ...
2
votes
1answer
294 views

Can I use a beacon to enter a Journey with my app?

I would like to know if I can enter my mobile app users into a journey when they enter the range of a beacon and/or geolocation. I know you can trigger a push notification via a beacon/geolocation ...
2
votes
0answers
123 views

Hybrid Remote on Mobile SDK 5+: how to handle cordova.js on iOS?

I'm currently making the move from MobileSDK 4.x to 5.2 for a hybrid remote app with Android and iOS builds, and I need some help on using cordova.js on iOS. I'm observing that cordova.js is not ...
2
votes
0answers
228 views

How to delete a record from a non-queryable object

I'm trying to delete a record from MobilePushServiceDevice object. This object is not queryable, however, it is deletable. How can I delete a specific record from this object if I can't query it in ...
2
votes
0answers
328 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 ...
2
votes
0answers
147 views

Hybrid Mobile app crashes on iOS 8.3

It seems that using SmartStore causes the app to freeze when installing an app for the first time, then a hard reset of the device is required. After that, the app seems to work fine. I experienced ...
2
votes
0answers
149 views

backbone.js in Salesforce1

I am starting to build some mobile samples in Salesforce1 using backbone.js I came across two js libraries - Backbone.Force https://github.com/pwalczyszyn/Backbone.Force this extends backbone.js ...
1
vote
0answers
32 views

User gets logged out in SalesforceMobileSDK for ios connected app

I have an app based on ReactNativeTemplate. Token is valid until revoked. However since IOS 15 release users are logged out after 15 minutes of inactivity (Regardless of session settings which ...
1
vote
0answers
21 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 ...
1
vote
0answers
31 views

Not able to find elements of a sfdc login screen using UIautomater

We have created native Android mobile App using 'com.salesforce.mobilesdk:SalesforceSDK:8.+' mobile sdk for the login functionality in the app. We use the Community url for login. We are trying to ...
1
vote
0answers
56 views

Sequence of errors in mobile app: [NoErrorObjectAvailable] Script Error; markup://native:AuraPrimingService: undefined; [SmartStoreAdapterError:

About 10 days ago all of our mobile users started seeing the same sequence of errors. They are all on iphone 7 and most are on the latest iOS and the latest Salesforce app version. The errors have ...
1
vote
0answers
32 views

react-native-force is not working with where clause

I am using the react-native-force library and getting an error when I add where clause in SQL. My code: let sql = SELECT Id FROM Account where Id = '0014P00002l5S9EQAU'; net.query (sql, (response) ...
1
vote
0answers
28 views

Can LWCs be used in Mobile SDK Hybrid Local Apps?

I see that as of v8.2, the Mobile SDK can use LWCs in Hybrid Apps. But looking closer, it looks like they can only be used in Hybrid Remote Apps and note Hybrid Local apps. Our current app is a hybrid ...
1
vote
0answers
26 views

Getting field-level security without apex coding in SalesforceMobileSDK

By declaring the Apex Class with sharing keyword, non-admin user can select or edit field-level security. How can i able to do this in mobile application only using SalesforceMobileSDK without ...
1
vote
0answers
17 views

Pass custom parameters to Salesforce Login page

I'm using Salesforce mobile SDK with Connected App, OAuth2 flow for connecting to Salesforce Community. Currently, I'm looking for an approach on how to pass additional custom parameters to the Login ...
1
vote
0answers
73 views

Using Salesforce dashboard in salesforce MOBILE sdk based app or may be some other app out side salesforce context

I want to render the salesforce based dashboards in mobile app which is based on SFSDK only. What will be the best way to do it? Currently i am making the call to get the dashboard data and then ...
1
vote
0answers
58 views

How to Identify a Close button in a In-App that is pushed to a application

We are doing the in-app message design on SFMC, there is a close button on the UI message. When we click on the close button its not closing the In-app its redirecting to the link that is given in the ...
1
vote
0answers
97 views

Migration of existing forcehybrid apps from AngularJS to Angular

We have an existing app running on Cordova 9.0.0, forcehybrid CLI 7.3.0 and Salesforce SDK 7.2.0 which is built using AngularJS v1.7.5. As it is known that AngularJS is deprecated and is not actively ...
1
vote
0answers
46 views

Salesforce iOS Remote Hybrid SDK works incorrect with SSO

We're using Salesforce iOS Remote Hybrid SDK in our app, version 7.1.2, that is shared for different clients, and it works ok with simple oAuth2 flow. However, started from Spring 2020 release, it's ...
1
vote
0answers
36 views

SFRestAPI.h in the Objective-C SDK appears to be missing methods

I'm building a Salesforce integration in an existing iOS app. As part of the integration workflow, I need to allow a user to upload a PDF to a specific opportunity. When the upload is complete, it ...
1
vote
2answers
195 views

TouchId, FaceId login for mobile Apps

One customer is asking for having the Mobile App authentication for External users sites using Communities with FaceId and TouchId, I have tried "Implementing Screen Locking and PIN protection" in the ...
1
vote
0answers
28 views

Android login with community custom domain redirect to out of app

Im using salesforce SDK to create android app . When i login app with the default community domain everything work fine . But when i change to use the custom community domain , it will redirect out of ...
1
vote
0answers
29 views

Community vs Site URL

Most of the documentation around setting up the mobile SDK references utilizing the community URL. We currently use a Site rather than a community and have been trying to use that site url instead of ...
1
vote
0answers
289 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 ...
1
vote
0answers
110 views

SF Marketing Cloud connections with Xamarin

We are looking at integrating the MobilePush feature of the Marketing Cloud Mobile Studio into a new mobile app we will be building: https://help.salesforce.com/articleView?id=mc_mp_get_started.htm&...
1
vote
0answers
145 views

Login with google in the Salesforce SDK in react native

We are building an application where we need to use the google login the login to salesforce. We have setup everything in our salesforce environment to enable this. When we do it with the browser it ...
1
vote
0answers
34 views

Mobile SDK: How to remove "Safari will open briefly" popup during Advanced Authentication

I'm working on a React Native app using Mobile SDK 6.2, but I believe my question would apply equally to a Native iOS app. I started the app from the "basic react native mobile" template. I've ...
1
vote
0answers
382 views

How to send push notifications to IOS devices via Firebase Cloud Messaging

I created a connected app with Push Messaging enabled and the "Android GCM" option selected for the Supported Push Platform. For the api key, I am using the legacy key of my Firebase Cloud Messaging (...
1
vote
0answers
505 views

Mobile push message in not getting delivered

I am trying to send mobile push through app in marketing cloud, however it is being delivered. It says it has been send however the send count is zero. I have implemented mobile push SDK in the ...
1
vote
2answers
44 views

Salesforce support for JB4A-SDK-Android v4.5.0

Does anyone know how long Salesforce will continue support for JB4A-SDK-Android v4.5.0? (Since currently the SDK is deprecated)
1
vote
2answers
659 views

Marketing Cloud cordova plugin error can not enablePush - iOS

so i wanted to create a cordova hybrid app using SalesforceMobileSDK alongside MarketingCloud plugin for push notification. I've added SalesforceMobileSDK cordova plugin and so far it runs perfectly. ...
1
vote
0answers
2k views

Native iOS app. How to pass authorization token into Webview for a community users?

We created a simple iOS native app, which should allow users to login into SF once and then open Lightning community app in a Webview. For this purposes we have below steps: User launch the mobile ...
1
vote
0answers
405 views

How do I know if my Apple Push Services is correct?

I am using Salesforce Marketing Cloud to push notification by using Mobile Push SDK. Recently, I have to renew my Certificate for some reasons. I follow the instruction and create a Provisioning ...