afincrementalstore

Using AFIncrementalStore with an Auth token

无人久伴 提交于 2020-01-12 10:11:13
问题 I'm working on an iOS client for App.net, and I'd like to use AFIncrementalStore to sync the web service with my Core Data implementation in the app. I've gotten the two to work for API requests that don't require an auth token, but I can't figure out how to use the auth token with AFIncrementalStore. In other words, I'm able to pull down the global feed, since it doesn't require auth: https://alpha-api.app.net/stream/0/posts/stream/global ...however, to get a user's stream, you need auth

AFIncrementalStore Problems fetching multiple remote relationships

ⅰ亾dé卋堺 提交于 2019-12-25 04:31:30
问题 I have a problem with AFIS fetching remote relationships, i'm connecting to Apigee API, properly setting relationships at - (NSDictionary *)representationsForRelationshipsFromRepresentation:(NSDictionary *)representation ofEntity:(NSEntityDescription *)entity fromResponse:(NSHTTPURLResponse *)response; then, spent a lot of time debugging, found that relation name and URL build is correct, exactly as i want but the AFHTTPClient never makes the network call, found out the reason in method: -

AFIncrementalStore Problems fetching multiple remote relationships

早过忘川 提交于 2019-12-25 04:31:18
问题 I have a problem with AFIS fetching remote relationships, i'm connecting to Apigee API, properly setting relationships at - (NSDictionary *)representationsForRelationshipsFromRepresentation:(NSDictionary *)representation ofEntity:(NSEntityDescription *)entity fromResponse:(NSHTTPURLResponse *)response; then, spent a lot of time debugging, found that relation name and URL build is correct, exactly as i want but the AFHTTPClient never makes the network call, found out the reason in method: -

Deadlock using AFIncrementalStore and NSFetchedResultsController

情到浓时终转凉″ 提交于 2019-12-11 02:54:47
问题 I've been bashing my head against this for a few days now and cannot for the life of me figure out what is going on. I'm pretty green with Core Data, but I know it well enough to avoid deadlock scenarios. However for this project I decided to try and incorporate AFIncrementalStore. I built a sample project to test the APIClient in order to map keys/values appropriately without messing with my actual project. It worked flawlessly. Now I'm using it in my actual project and things are finicky.

How to add an Auth Token in every request using AFIncrementalStore?

六月ゝ 毕业季﹏ 提交于 2019-12-08 09:28:42
问题 I have an iOS + Rails 3.1 app, and I'm using AFIncrementalStore for the client-server communication. I have implemented Token Authentication on my Rails server according to this tutorial: http://matteomelani.wordpress.com/2011/10/17/authentication-for-mobile-devices/ I now want to include the &auth_token=XXXXXXXX in every request from client to server, including POST requests. How would I do that? I haven't found the solution in this related post: Using AFIncrementalStore with an Auth token

existingObjectWithID deadlock with NSPrivateQueueConcurrencyType

两盒软妹~` 提交于 2019-12-06 03:42:52
问题 I'm running in to a freeze (deadlock?) with the NSPrivateQueueConcurrencyType concurrency type and not with the NSMainQueueConcurrencyType . My context initialization: _managedObjectContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType]; [_managedObjectContext setPersistentStoreCoordinator:coordinator]; The troublesome code: NSManagedObjectID *managedObjectID = [self managedObjectIDForEntity:entity withParseObjectId:object.objectId]; managedObject =

existingObjectWithID deadlock with NSPrivateQueueConcurrencyType

孤街醉人 提交于 2019-12-04 08:33:05
I'm running in to a freeze (deadlock?) with the NSPrivateQueueConcurrencyType concurrency type and not with the NSMainQueueConcurrencyType . My context initialization: _managedObjectContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType]; [_managedObjectContext setPersistentStoreCoordinator:coordinator]; The troublesome code: NSManagedObjectID *managedObjectID = [self managedObjectIDForEntity:entity withParseObjectId:object.objectId]; managedObject = [context existingObjectWithID:managedObjectID error:error]; The backtrace: Link to Github project and

Using AFIncrementalStore with an Auth token

徘徊边缘 提交于 2019-12-03 21:20:29
I'm working on an iOS client for App.net , and I'd like to use AFIncrementalStore to sync the web service with my Core Data implementation in the app. I've gotten the two to work for API requests that don't require an auth token, but I can't figure out how to use the auth token with AFIncrementalStore. In other words, I'm able to pull down the global feed, since it doesn't require auth: https://alpha-api.app.net/stream/0/posts/stream/global ...however, to get a user's stream, you need auth (you'll note this link gives an error): https://alpha-api.app.net/stream/0/posts/stream I understand that