Xamarin for Salesforce 使用 DeveloperForce 包

Xamarin for Salesforce using DeveloperForce packages

希望其他人正在使用 DeveloperForce 和 Xamarin 来访问 Salesforce——或者有其他选项从 Xamarin 解决方案访问 Salesforce。

更新适当的凭据后,使用提供的 DeveloperForce SimpleConsole 示例 (Force.com-Toolkit-for-NET) 进行调试,成功使用 Salesforce 沙箱进行授权并检索帐户列表。

然后我使用与 SimpleConsole 示例相同的代码创建了一个 Xamarin 解决方案 (PCL/iOS/Droid)。当我调试时,它挂在授权尝试上。 UsernamePasswordAsync() 获取客户端的调用只是挂起 -- 没有失败,没有 return,没有。

从 PCL and/or 移动解决方案使用 DeveloperForce SDK 方法时是否需要采取其他步骤?下面,我提供了示例链接和来自 SalesforceStack 的另一页。

URL 到 DevloperForce 样本 https://github.com/developerforce/Force.com-Toolkit-for-NET

URL 到 SalesforceStack post https://salesforce.stackexchange.com/questions/51911/xamarin-sdk-key-not-found-exception/53168

卫生部!它阻塞在主线程上。重构代码并从按钮(命令)调用它,任务现在返回。