4

We are developing iOS app which is using Salesforce iOS native SDK. We are currently using SFRestRequest class for communicate with SF. But in our "Debug Logs" it shows our log like this.

Application Unknown

Reqeust Type is Api which is okay. But in Application Field it says "Unknown" which can be difficult for us to track bugs. Is there any way to change this "Unknown" data to something like "iOS app"?

4

With the Partner API you can use the CallOptions.value to identify the client application. This populates the Application column. Or at least it does in the Login History view.

Setting the Application via the CallOptions

I don't think you can utilise this with the REST API, which is probably what backs the iOS Native SDK.

The same login using OAuth for a connected app also populates the Application field in the login details.

OAuth Connect App

I wasn't able to test this in the Debug logs as thee ApexSoap operations don't show up.

See also: Is there any documentation about using Client ID / Token with REST API to access Group and Professional Editions?

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.