Comments (5)
It is actually not just based on locale. Based on the country, the user is allowed to switch between the two accounts. The bootstrap server identifies these rules based on a combination of locale and country (determined by IP address). More info here .
from evernote-sdk-ios.
I read that too. It still makes too much assumption that is not totally right. Many people in China use Evernote instead of YinXiangBiJi. And there are English speaking Chinese people traveling or living outside China who use YinXiangBiJi instead of Evernote. The assumptions you are making make things difficult or event impossible, e.g., after update to the latest SDK I can no along sign in my YinXiangBiJi account because I'm using English in US.
from evernote-sdk-ios.
Sorry for the inconvenience. This is not related to the iOS SDK, bootstrapping protocol is part of the Evernote service. Please contact [email protected] and we might be able to provide workarounds.
from evernote-sdk-ios.
You learned the issue but you can't feedback it to your peers? In fact, it is really easy to fix it in iOS SDK, just use the code below to replace over-smart code in SDK — why bootstrap if you already let us set service host:
+ (void)setSharedSessionHost:(NSString *)host
consumerKey:(NSString *)consumerKey
consumerSecret:(NSString *)consumerSecret {
EvernoteSession *session = [self sharedSession];
session.host = host;
session.consumerKey = consumerKey;
session.consumerSecret = consumerSecret;
}
- (void)authenticateWithViewController:(UIViewController *)viewController
completionHandler:(EvernoteAuthCompletionHandler)completionHandler
{
self.viewController = viewController;
self.completionHandler = completionHandler;
// authenticate is idempotent; check if we're already authenticated
if (self.isAuthenticated) {
[self completeAuthenticationWithError:nil];
return;
}
// Do app setup sanity checks before beginning OAuth process.
// This verification raises an NSException if problems are found.
[self verifyConsumerKeyAndSecret];
if (!viewController) {
// no point continuing without a valid view controller,
[self completeAuthenticationWithError:[NSError errorWithDomain:EvernoteSDKErrorDomain
code:EvernoteSDKErrorCode_NO_VIEWCONTROLLER
userInfo:nil]];
return;
}
// remove all cookies from the Evernote service so that the user can log in with
// different credentials after declining to authorize access
[self emptyCookieJar];
[self startOauthAuthentication];
}
from evernote-sdk-ios.
Thank you. the (pseudo) intelligent code from Evernote bugged me today. I will fix it like you suggested.
from evernote-sdk-ios.
Related Issues (20)
- Cannot create HTML format note using ENSaveToEvernoteActivity. HOT 1
- Xcode "Export For Localisation..." crashes
- swift + evernote -- ENSDKAdvanced.h can't find ENSDK.h
- saveNewNoteToEvernoteApp does not save my note if Evernote app is not running
- Too much warnings in Xcode 6.
- Feature in Evernote
- Feature in Evernote Part 2
- Incorrect error code when user cancelled authentication
- Use UIApplicationDidBecomeActiveNotification notification
- SSKeychain Outdated
- when archive project using sdk, header files are also added to the archive
- How to edit existing note
- Fix Xcode 5.1 warnings HOT 2
- Xcode 5.1 64-bit simulator did not run
- Crash in [EvernoteSession emptyCookieJar]
- Crash in [EvernoteSession userStore] HOT 1
- Problems with convertENMLToHTML when Note has attributes
- How to create a self-closing tag with ENML writer?
- Zombie object when trying to authenticate without internet connection
- Images as attachment won't show unless hardcode width & height
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evernote-sdk-ios.