I want to login community with mobile sdk (Android), but meet with problem.
What I tried: I installed the mobile sdk example (project name is "ContactExplorer", which is Hybrid local mode), and it works fine with my production login credential. Then I follow the Mobile SDK Development Guide (Salesforce Mobile SDK 3.2), CHAPTER 10 Using Communities With Mobile SDK Apps, and do the following:
1,create a community, set up API-enabled profile, create community user with the profile. In community "Login & Registration" settings, I just leave the default settings, because the developer guide example doesn't mention whether we need change this.
2,android project(ContactExplorer), in xml folder I added a file "servers.xml", and it looks like this:
<?xml version="1.0" encoding="utf-8"?>
<servers>
<server name="Community Login"
url="https://mycommunityname-developer-edition.eu0.force.com/customers" />
</servers>
3, I run the android app in simulator, expecting it will go to the community login page. But I see the login page of production org(it even give errors,but forget this error, I want to see the community login page).
Even tap the top-right corner icon and select servers, the community server can't be found.
I read the related chapters of SDK developer guide several times, and read some posts on internet. I don't know what I missed. Why it can't go to the community login page? Shall I must "add connection" manually as in the second screenshot? For users, this is troublesome to type long url letters on mobile device.