Has any one developed mobile app for Partners using Salesforce Mobile SDK? If yes, can you please share how you got them access?


  • Are you talking about mobile access to a community? Using which visual container? – greenstork Apr 21 '14 at 18:23
  • Using the Mobile SDK, you can create your own app UI and access SFDC just via the API or you can create a hybrid app, which frames the Salesforce/Salesforce1 UI. Which are you trying to do with your app? – greenstork Apr 21 '14 at 18:32
  • Can you elaborate on your comment - "you can create a hybrid app, which frames the Salesforce/Salesforce1 UI" as its hybrid app? thanks! – Manohar Apr 21 '14 at 19:30

The way I handled this was based on Pat Patterson's blog post "Oauth for Portal Users":


To set this up with the mobile SDK I did the following:

  1. Created a partner portal and assigned the partner portal gold profile to it
  2. Created a force.com site and set up the login against the partner portal created in step 1.
  3. Created a partner portal user and logged in as them to set the password up
  4. Created a Visualforce page and gave access to the partner portal gold profile
  5. Created a new mobile SDK 2.1 iOS application using the forceios command - I set this up as a remote hybrid application but local hybrid works fine too. For the remote page, I specified the name of my Visualforce page created in step 4 (which was /apex/Partners).
  6. Change references to login.salesforce.com to the address of the site (e.g. bb-developer-edition.eu2.force.com) - I'm not sure whether all of these needed to change, but for the purposes of my app it didn't matter if I went too far as it was only for partner portal users. If you miss any of these, make sure to remove the application from the iOS simulator/device, as it seems to cache this information.

Then I fired up the iOS application, which took me to the default login page for the site - its not styled for mobile so looks ugly but is functional. Once I'd entered the user id and password for the partner portal user I was asked to confirm access for the application, which I did. I was then taken to the Visualforce page I'd set up earlier.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.