Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yinxiang Biji profile does not get set #51

Closed
mpnow opened this issue Oct 12, 2014 · 1 comment
Closed

Yinxiang Biji profile does not get set #51

mpnow opened this issue Oct 12, 2014 · 1 comment

Comments

@mpnow
Copy link

mpnow commented Oct 12, 2014

To test operation with Yinxiang Biji, I forced the locale to be "zh_cn". But in ENSession.m > authenticateWithViewController, the call to

[userStore getBootstrapInfoWithLocale:locale success:^(EDAMBootstrapInfo *info)

returns the International www.evernote.com profile in array position 0, and the Chinese Yinxiang profile in array position 1. So then this line:

    EDAMBootstrapProfile * profile = [info.profiles objectAtIndex:0];

incorrectly sets the active profile to the International one, instead of the Yinxiang one.

@everic
Copy link
Contributor

everic commented Oct 13, 2014

Our bootstrap service returned the list based on your device locale and your IP address. Even if your locale is 'zh_cn', since you instantiated this call to the service in an US IP address, our service still return evernote profile on position 0. If you call this service with an Chinese IP address, our service will return the YXBJ profile on position 0. Regardless, we should use the preferred bootstrap profile on position 0.

@everic everic closed this as completed Oct 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants