Comments (4)
Can you please elaborate on what you mean by "bad things are happening".
from evernote-sdk-ios.
Hi,
I have the regular AFNetworking being used in my code.
Your code started from an old branch of AFNetworking (fork from 1.x I think) and then you modified it to fit your needs.
In order to avoid compilation errors for people like me, you changed the names of the constants so they will not conflict with the same names used in AFNetworking.
HOWEVER, the string values assigned to the constants (which can be any string in the world you like) remained identical to the values used in AFNetworking. As a result for example, when your code generates a notification you have a separate piece of code that wait for this event and respond BUT there is also a piece of code in AFNetworking which waits for the same event (based on the string value and not based on the name of the constant) and it also responds to the notification. By chance this may work but there is a very high probability that the code responding in AFNetworking does not behave correctly
This is what happened to me when my code switched to use AFNetworking 2.0
from evernote-sdk-ios.
The notifications are supposed to be global to the app, so there can be multiple of them being posted. Will upgrading to AFNetworking 2.0 solve your issue?
from evernote-sdk-ios.
No need to move to AFNetworking 2.
Your code replicates AFNetworking (with minor name changes) but it generates notification that are supposed
to be handled only by your replicated code and instead it is handled by both your code and the AFNetworking 2 code my App has.
What you should do is put "EN" inside the strings you hold as constants. All parts of your code will use the same constant and communicate with each other but my AFNetworking2 code will not respond.
In other words, when you decided to incorporate AFNetworking code inside your code you did the right thing in renaming the constants but you should have also renamed the string values stored in them
Thanks
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.