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 [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

1
vote
1answer
360 views

Marketing Cloud Push won't increment the badge no in iOS

I am getting issues with Badge count on IOS. When I send the push notification via ET, (And yes I picked 'yes' to increment badge count in iOS)it always set the badge attribute in payload as '1'. ...
1
vote
1answer
144 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 ...
1
vote
1answer
218 views

Salesforce Mobile SDK & iOS 11 Compatibility?

I know that iOS 11 is going to release soon. I have been searching the internet about this so that we aren't caught off guard with our iOS app that uses it but I haven't seen anything yet. Is anyone ...
1
vote
1answer
353 views

Push notifications to an Android app since Google moved GCM to Firebase?

First the short version: has anyone managed to get push notifications from Salesforce working with an Android app, since Google moved Google Cloud Messaging into Firebase Cloud Messaging? A friend of ...
2
votes
0answers
93 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 ...
0
votes
1answer
229 views

How to call a apex rest service from salesforce mobile sdk-android?

I need to call apex rest service from salesforce mobile sdk-android. I can execute the soql query by calling RestRequest.getRequestForQuery() method. How to call apex service from RestRequest class?
0
votes
1answer
56 views

Sales force send push notification calls APNS or Android?

We are currently working on integrating sales force mobile push sdk in our android app. We have the salesforce sdk returning the device token and also we are able to trigger the push notification. But ...
0
votes
1answer
63 views

Salesforce Mobile SDK error when fetch plugin SalesforceMobileSDK

I've been trying to create a hybrid application with sdk but at a point of creation it gives me the following error: Error: Failed to fetch plugin https://github.com/forcedotcom/SalesforceMobileSDK-...
2
votes
2answers
331 views

Why do we need the com.salesforce plugin for cordova apps?

I have a lingering question. For Hybrid Salesforce Apps, why do we need the 'com.salesforce' cordova plugin? We are able to fetch the Salesforce data using the ForceJS library as it is? :)
0
votes
1answer
66 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
360 views

logout the mobile app using Salesforce Mobile SDK for iOS

I am developing a mobile app in iOS native for Salesforce users using the Salesforce mobile SDK. Almost I have completed the basic features like create, edit and delete records from my mobile app. I ...
1
vote
1answer
112 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....
3
votes
0answers
33 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
159 views

Create Pre Chat Records using Live Agent Mobile SDK

I'm trying to implement a native Android app using the Live Agent Android SDK, however I was unable to find how to create records using the API provided in the SDK. I want to implement something ...
0
votes
1answer
327 views

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'credentials.clientId cannot be nil or empty'

How do I save the credentials in SFOAuthCoordinator? The app is crashing if in -[SFOAuthCoordinator authenticate] method with message saying 'credentials.clientId cannot be nil or empty' I ...
6
votes
2answers
689 views

Lightning Community via custom Mobile SDK app?

I need to provide a Community experience via both mobile and web. Taking mobile out of the question for a minute, I believe I can build the required functionality using Lightning Community Builder, ...
3
votes
1answer
300 views

Smartstore/Smartsync - Create related objects

I'm having some trouble working out the logistics behind creating two records on separate objects that have a lookup relationship. Lets say we're offline and want to create an Account, and then add a ...
2
votes
0answers
183 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 ...
1
vote
0answers
426 views

Mobile push for Android using exacttarget's SDK doesn't work

Please Help!! :-) I'm trying to send push notifications from exacttarget's portal mc.s7.exacttarget.com/cloud/#app/MobilePush/MobilePush/ and it doesn't seem to work at all. The device is not ...
1
vote
1answer
324 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
103 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 (...
0
votes
0answers
383 views

Redirect URL in Salesforce1

How can I pass parameters to a page using Salesforce1? In classic vforce, I use a controller that modifies the page ref but sends parameters. Can I do a simliar process using NavigateToURL(ref, [...
2
votes
1answer
401 views

Navigating to create record page Salesforce1 sforce.one.nativgateToURL

So I am trying to redirect to the edit page of a record to pass parameters. For the desktop browser everything works fine. However, for SF1 I get a "Looks like there's a problem error" Is the ...
0
votes
2answers
386 views

How can I send the device token with the SDK?

I have a iOS native App and it´s integrate with salesforce with REST Services. Now, I have to support push notifications. I can´t send the token device with any web service. I think that the only ...
0
votes
1answer
66 views

Hybrid APP Salesforce Mobile SDK

I am trying to create the hybrid app follow this link :- https://developer.salesforce.com/page/Developing_Hybrid_Apps_with_the_Salesforce_Mobile_SDK But when i clicked on remote access the page ...
7
votes
0answers
242 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 ...
0
votes
2answers
224 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. ...
5
votes
2answers
850 views

Is it possible to use Lightning Component/Aura inside Salesforce Mobile SDK Hybrid Local App

We want to provide offline data support, but do the development using Lightning Component/Aura framework, So for this usecase I want to understand that is it possible to use Lightning Component/Aura ...
1
vote
1answer
252 views

Hybrid Mobile Community App Setup

Trying to setup a hybrid_remote mobile ios app using the forceios and not able to bypass the login screen. Here is what I did: Step 1. forceios create Enter your application type (native, ...
0
votes
1answer
49 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 ...
2
votes
1answer
456 views

When Do Connected Apps Show Under “Connected Apps”

In each org there's a list of connected apps available under Administration Setup -> Manage Apps -> Connected Apps where the admin can control certain settings for those apps, specically around ...
5
votes
1answer
77 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. ...
6
votes
1answer
206 views

Join Queries in a Hybrid App (Salesforce SDK / Smartstore)

I'm trying to retrieve some data from the local database using SmartStore and join queries. Let's say I have the following query: SELECT * FROM {PricebookEntry}, {Product}, {Pricebook} WHERE {...
13
votes
1answer
7k views

OAUth Issue: OAuth_Approval_Error_Generic

So I'm using the iOS Mobile SDK. I had an app working without issue, then changed the Consumer key to that of a different connected app (i.e. changed away from the default sample one) and updated the ...
2
votes
0answers
318 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 ...
1
vote
1answer
509 views

Hybrid Remote Community App must always login after session timeout

I have built several Hybrid Remote mobile apps for Customer Community users using the Salesforce Mobile SDK, versions 3.1.2 through 3.3.0. I'm using a custom community login screen, based on the ...
0
votes
1answer
47 views

Mandatory permissions from apps with the last version of JB4A versions. (salesforce marketing Cloud)

Using JB4A SDKs (provided by Salesforce marketing cloud) What permissions are mandatory and for which versions of iOS and Android.
3
votes
1answer
98 views

Mobile SDK 3.2 Logout Issue - Network action must have an instance hosts

I recently upgraded one of my iOS apps to Mobile SDK 3.2. Everything generally works okay but I'm seeing this weird error message when user logs out - Network action must have an instance hosts ...
2
votes
1answer
208 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
0answers
430 views

Uploading a file from mobile Andoid to force.com

I want to upload an image that I get from my camera mobile to force.com, but i have an error that i couldnt handle. Here is my code , if you have any ideas, please share. Thank you! private void ...
1
vote
0answers
54 views

Using Social Authentication with Mobile SDK

I have a hybrid mobile app that logs into a customer community. The Community has a custom login page the provides the sso links to 3 Auth Providers i've configured (FB, Google, LinkedIn). If the ...
0
votes
1answer
92 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
0answers
143 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
1answer
367 views

How do I sync offline data with iOS native app?

iOS native app:: When I refresh remote data using SFSyncStateMergeModeOverwrite sync options the records previously downloaded, that have been deleted in Salesforce, are not removed from my local data....
2
votes
2answers
252 views

hybrid remote app with customer portal reset password issue

I have a hybrid remote app that uses a custom login page to authenticate through customer portal and land on a custom VF page. This works fine, however if the user resets their password they get stuck ...
1
vote
0answers
56 views

iOS Mobile SDK & CocoaPods Compiler Error

I've followed the instructions for adding the Salesforce Mobile SDK for iOS via CocoaPods (v. 0.36), but getting a compiler error, per the attached screenshots. Deployment target is iOS 8.1. What am ...
0
votes
1answer
632 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 ...
0
votes
3answers
871 views

Regarding Push Notification to Salesforce Mobile Apps

When there is a mobile client app being created using hybrid technology instead of developing the same using salesforce mobile sdk native programming, then how can we send messages from salesforce to ...
1
vote
1answer
138 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 ...
3
votes
1answer
209 views

Hybrid SmartSync app crash - setObjectForKey: object cannot be nil (key: Customfield__c)' exception

I am using the latest Cordova plugin for Salesforce Mobile and when I try to use Smartsync, my app crashes with setObjectForKey: object cannot be nil (key: Customfield__c)' exception. How can I fix ...