SalesForce on iOS login without SalesForce Webview?

I am creating an iPhone application that uses salesforce as a server-side data component. I need to access the database from the application to retrieve data for any user entering the application, for this I need to authenticate using Sales force.

I am using the Rest API template, which was available in Xcode after installing SalesForce, but I keep getting the following:

SalesForce Login UIWebView

Is there a way so that I can log in to salesforce programmatically? I would like our use of Salesforce to be behind the scenes, so that our users never have to interact directly with the seller himself, is there any way to do this?

+6
source share
2 answers

Yes, you can login behind the scenes.

Follow this Startup in Salesforce API on iPhone?

I am stuck with the same problem and finally figured it out.

+2
source

This is similar to calling OAuth. You can get around this by providing a session id. To get the session ID, you need to log in with the username and password of the user. You can use the SOAP API for this.

+4
source

Source: https://habr.com/ru/post/911519/


All Articles