10

After much trial and error. I think this may be due to simple mis-configuration of the Connected App. Check the Scopes closely. For my trailhead app I needed the api, web, refresh_token scopes. I had omitted one of these. Obviously the scopes required will vary for the app, but at a minimum we need these 3. Scope parameter docs: https://help.salesforce.com/...


7

I wrote ForcePad. Check out item 3 under the getting started section: (Optional) ForcePad connects to environments that are not otherwise API-enabled, like GE and PE orgs, by using a partner token. If you have a Salesforce partner token, paste it into RootViewController.h under PartnerTokenId. That said, getting a partner token is a little ...


7

As a developer, you only need to create the connected app once, in a Developer Edition. You publish your app, and it's good to go. You do not need to create a connected app configuration in any other org. Users from other orgs can log in via your app, without there being a corresponding connected app in their own org.


7

Very interesting question. I was in a similar situation in an app a year back and here's what I researched and hacked together. Officially, you need to pick either the local or remote mode - both are NOT supported simultaneously. I did manage though to create an app with a local context and invoke my Visualforce pages in a WebView by passing the auth ...


7

My understanding is that it will not impact apps built using the Mobile SDK 3.0 as it already supports SHA-256 in its libraries. However, you still need devices/ browsers meet the compatibility criteria for SHA-256. You can find more details here.


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

Mohit - open your Android SDK Manager and make sure that you have at least Android 2.2 (API v8) installed.


6

The Mobile SDK currently supports the following approaches Native iOS Native Android Hybrid iOS Hybrid Android Although it uses Cordova for packaging which does support Windows 8 development, the support for being able to run your app as a WebView in Windows 8 is not provided in Mobile SDK. If you are developing a Salesforce app for Windows 8, you should ...


6

Short answer - it works as expected If you select * a soup, you will get all the "internal" columns we create to support smartstore operations (more on this below). Columns that hold data from "indexed paths" use the type specified in the indexed spec (string, integer, floating etc). Since we don't support a type object, when you index non-leaf nodes, you ...


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

Also, here's another example of using the PhoneGap Media API. In my case, I was capturing Audio, but it shouldn't be that different to capture Video and upload it to Salesforce - http://blogs.developerforce.com/developer-relations/2013/03/speech-recognition-att-toolkit.html. You can find the full code base for that sample app on GitHub - https://github.com/...


5

The Datetime format that Salesforce uses cannot be formatted using NSDateFormatter. MobileSDK has a util class SFDateUtil that can be used to convert NSDate into formatted string. NSString *dateInString = [SFDateUtil toSOQLDateTimeString:[NSDate date] isDateTime:true]; This gives the datetime in yyyy-mm-ddThh:mm:ss.000Z. This String can be used in query. ...


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

As a starting point, you can refer to this tutorial from Raja Rao (Salesforce Developer Relations Team) which explains how to integrate Swift in your existing Salesforce native iOS app. The source code is available here


5

It is handled via the following key-value pair in your <appname>-Info.plist file: <key>SFDCOAuthLoginHost</key> <string>your_community_login_url_minus_the_https://_prefix</string> You can find more details about it here


5

You can use the requestForUploadFile method. Try this Use the UIImagePickerControllerDelegate delegate Set your image source to UIImagePickerControllerSourceTypePhotoLibrary Convert image data to NSData and then upload using SFRest API requestForUploadFile Some sample code (may require some tweaks to run though) @interface RootViewController : ...


5

The correct way to do this is as follows NSArray *allAccounts = [SFUserAccountManager sharedInstance].allUserAccounts; if ([allAccounts count] > 1) { SFDefaultUserManagementViewController *userSwitchVc = [[SFDefaultUserManagementViewController alloc] initWithCompletionBlock:^(SFUserManagementAction action) { [self....


5

Since you're using a custom login screen, I'd also customize your forgot password screen to propagate that state back to the login screen. Pass it and return it as a startURL


5

This one is actually a known issue and has subsequently been fixed. You can also view the code changes for this fixed ticket here. This was occuring earlier because the flow was missing handling for unique subscribers as a key - kSFUserAccountKey This is the crucial block (void)userWillLogOutNotification:(NSNotification *)notification { SFUserAccount *...


5

Your approach of a 'simple Hybrid App that sends you to the Community Login page' is the right path here. As for your other concerns but I'm concerned that Locker Service will cause a problem with the Cordova integration layer. You'll essentially be building what's a remote-hybrid app so the community would be loaded in a WebView container. Based on ...


4

A bit of reverse engineering and the code behind the Create PDF button on the Standard Quote page reveals that it invokes /quote/quoteTemplateDataViewer.apexp?id=<QUoteId>&summlid=<TemplateId> Pasting this into the Browser sure enough renders the Quote similar to how it is rendered on clicking the Create PDF Button. Also, if doing this in ...


4

The Android SDK is now an Android Library project, and as such can't be just included as a jar, it needs to be included as an actual source code project. You'll want to clone the repo and add the relevant projects to your workspace (assuming you're using eclipse)


4

Try to modify your LastModifiedDate to the following format: 2013-06-21T00:00:00.000Z So add T00:00:00.000Z to the 2013-06-21 without white space (generally format it like this: yyyy-mm-ddThh:mm:ss.000Z)


4

As I noted in a comment above, if your organization is set up to use SAML as the means of authentication (which requires a MySalesforce URL), then the SDK should redirect authentication to the SAML authentication page in question rather than the OAuth page. This does require your application to reference the MySalesforce URL for authentication rather than ...


4

The same question was answered on this link by Kevin Hawkins who's the Salesforce Mobile iOS SDK lead. http://boards.developerforce.com/t5/Mobile/Deploy-Hybrid-Touch-to-Apple-and-Salesforce-AppStore/m-p/644159#M1581 Your Connected App will work across all organizations in Production and Sandbox, subject to org admin-configured restrictions, etc. So you ...


4

There are 2 questions in here. A) Where does Mobile SDK refer that it's using PhoneGap 2.3 - It used to be on the SDK release notes earlier but I don't see it updated there. In any case, I usually look at this link where it defines the external dependency for link to latest Cordova (PhoneGap) version. As you can see, it's 2.3 The corresponding link for ...


4

I've faced this issue as well over the years. The SDK does NOT directly support testing your hybrid apps on the browser because the oAuth dance happens via a WebView that's triggered by Cordova specific APIs such as onDeviceReady which fire only on the phone (device/ emu). This is the reason why you typically get the forcetk undefined on your browser while ...


4

It took me a while but I actually figured it out myself. I am posting this here just in case it benefits anyone else. For Custom Objects, the first thing you need to do is 1.Setup -> Translation Setting -> Enable Add the required Supported Languages Save the desired Supported Languages The language will then be shown as 'enabled for your organisation' ...


4

Sharing my thoughts based on my development experience with the Mobile SDK for last few years. Note - I have been developing Force.com mobile apps since the time when the Mobile SDK did not exist and you'd to pretty much write your own wrappers if you were doing any hybrid development or use tools such as zkSforce for native development. Stability/ Support -...


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, ...


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