7

This is actually a known issue with Mobile SDK 3.3 - it will NOT work with Cordova version 5.0 (only Cordova 4.x is supported). If you have to use Cordova 5.0, please upgrade to the latest version of Mobile SDK - 4.0 This has been discussed here as well.


6

Yes, Salesforce does support Mobile SDK as part of premium support. However, you actually don't need premium support for mobile, if you are facing an issue with Mobile SDK, you can either post on the Salesforce Mobile SDK Google+ community. The questions on the G+ community are answered directly by the Mobile SDK team as well as the community(such as yours ...


5

The refresh token may have an indefinite lifetime, persisting for an admin-configured interval or until explicitly revoked by the end-user. Since refresh tokens may expire or be revoked by the user outside the control of the client application, the client must handle failure to obtain an access token, typically by replaying the protocol from the start. In ...


5

Based on your comment in response to my original question in comments: Please enable analytics when you call configureSdk(). This will result in analytics data being transmitted to the MarketingCloud servers. Setting an OpenDirect delegate will have no bearing on the analytics being transmitted as it merely provides a delegate for the message to be ...


4

A) Use the Ray Dehler method to whitelist all IP addresses. The IP in question is your public IP not local IP so it does not matter whether you are using dynamic IP, DHCP or whatever. Your public IP never changes so Ray Dehler method works well. This will ensure that your users never get asked for a verification code. If you do not wish to whitelist all IP, ...


4

The way I handled this was based on Pat Patterson's blog post "Oauth for Portal Users": https://developer.salesforce.com/blogs/developer-relations/2013/02/oauth-for-portal-users.html To set this up with the mobile SDK I did the following: Created a partner portal and assigned the partner portal gold profile to it Created a force.com site and set up the ...


4

This is because Gradle support was actually introduced in Mobile SDK 3.0 which was released in January end. Please upgrade to 3.1 and you should be good to go. The 3.0 release notes states Other Technical Improvements Various bug fixes. Android Studio and the Gradle build system are now fully supported.


4

It is possible to use Mobile SDK along with Communities. There is a detailed tutorial available for it here. If you use the Mobile SDK, your app can launch your community login page in a WebView for authentication purposes. For Android, you would specify the community login URL in res/xml/servers.xml file in your application project. For example: <?...


3

The querying process is the same for standard objects and custom objects. For example, if you do this for opportunity return query("SELECT {Opportunity:Name}, {Opportunity:Id}, {Opportunity:AccountId}, {Opportunity:OwnerId}, {Opportunity:Amount} FROM {Opportunity}"); Similarly for a custom object, you would do something like return query("SELECT {MyObj:...


3

This is the GCM key. 1) Go to this URL 2) Click Enable API 3) Click Credentials -> New Credentials and then chose Android Key 4) You will then the key as shown


3

I ran into this issue recently and it looks like having a string reference for the category name value causes a problem. To resolve the issue you need to replace few values in this file. plugins/com.salesforce/src/android/libs/SalesforceSDK/AndroidManifest.xml Replace all occurrences of <category android:name="@string/app_package" /> with <...


3

When experiencing errors that are clearly raised from the server side, a good place to start is the system status page at trust.salesforce.com. At the time you seem to be accessing it, there appear to be some problems for the instance you are hitting. If you are new, your instance is in your URL: https://eu3.salesforce.com/services/v20.0/search ^ ...


2

Check the actual response you're getting. Depending on the API you might find that success is being called because you're getting an HTTP 200 code (i.e. ok) but it could be the content of that response actually contains an error.


2

After digging around in the Salesforce MobileSDK for Android, it seems clear that both of my problems are due to design decisions within the Android version of the SDK. For #1, suppressing the login page title bar probably could be accomplished by changing an AndroidManifest.xml (possibly the app's; certainly the MobileSDK plugin's), except that the code ...


2

You cannot create a new Custom Object using REST API. New custom objects can only be created using Metadata API. The API you are referring is used to create a new record of said object (be it Custom or Standard). See this for more information about the api, specifically For an example of creating a new record using POST, see Create a Record.


2

Based on the errors described above, can you confirm did you run this command after you installed the Mobile SDK? ./install.sh I think it's missing on the link you quoted but this is the first step that you need to do and it's mentioned on Mobile SDK repo page.


2

The only way I know of doing this is to use the SOAP API. You would concatenate strings to create the request - for example: String req = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"+ "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:enterprise.soap.sforce.com\">"+ " <soapenv:Header>"+ " &...


2

Same steps worked well for me and I see the login screen when I launch the app. I see the following error in your log The node package shelljs is required to use this script. Run 'npm install shelljs' before running this script. /Users/itsme/projects/myApp Update - I see this issue was logged on the Mobile SDK repo and has been closed as an environmental ...


2

I had the same problem after trying to setup to use forcedroid My view is there is an error in the template cloned on the create To work around it, if you look in the platforms\android\res\drawable folder under the project created by "forcedroid create" you will see a single file "icon.png" The generated manifest is looking for sf__icon.png which does not ...


2

I have found that if my project includes plugins other than the SF one then I need to make sure that I add the SF one last. I have mentioned this in one of the git issues. At the time of writing I still have to follow the process of removing the plugin and platform and then re-adding both, only this way do I not end up with a duplicate issue in the manifest....


2

It is not possible to completely bypass login using the Salesforce Mobile SDK. There are however a few things you can do. 1) If you're using Communities, you can use a custom auth screen as described here. You can pre-fill the auth params on the custom screen if required. 2) You can do deferred authentication as described here. This will delay the auth ...


2

I can understand that this can be a bit confusing as it's not really documented very well. The key concept here is that forcClient is an instance of react.force.net.js var forceClient = require('./react.force.net.js'); When a user authenticates using oauth.authenticate - under the hood, it returns a data dictionary comprising of * Returns a dictionary ...


2

API access for professional edition will disabled by default and you will need to contact salesforce to get it enabled . To request API contact via your partner org https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/dev_packages_api_access.htm https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/...


2

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/2012, this was considered safe and resulted in a repeatable, unique device identifier. Since then, however, several device manufacturers and 3rd party ROM makers ...


2

Amazing that this hasn't come up before. Thank you. You are correct: the create() method is being obfuscated and is marked for internal-use-only. I will open a ticket for this to be addressed. You can, however, get an instance of RegistrationManager.Editor and set/clear Attributes, add/remove Tags and set ContactKey: MarketingCloudSdk.requestSdk(new ...


2

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 would explain your issues with not being able to access the SDK when the app receives a push message from a "cold launch" scenario. Additionally, if the ...


2

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 configuration and re-initialize with the new configuration. There is no guarantee that the device will not still receive push messages from the previous ...


1

The actual issue is caused by the recently (8th March) release of the 1.6.0 version of the Phonegap Push Plugin. This release now requires the SENDER_ID to be set on installations (seems an odd idea to me). The SDK folk fixed this on the 12th in this PR and is available in the master branch of the cordova plugin repo. The fix is to hard set the use of the ...


1

I had a JRE installed in my system. After installing JDK7, I am able to run "cordova build android" command


1

I have solution about icon. You have to rename your icon image as 'sf__icon.png' and paste that file to all the resource folders. Then just run your project. The icon image will be changed.


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