ios8 - iOS share extension NSUserDefaults issue with stored auth token -



ios8 - iOS share extension NSUserDefaults issue with stored auth token -

i utilize restkit library handle request. utilize base of operations authorization , maintain token in user default.

here example how info app nsuserdefault , utilize in share extension.

so made this:

nsuserdefaults *userdefaults = [[nsuserdefaults alloc] initwithsuitename:@"group.com.myapp"]; nsstring *token = [userdefaults objectforkey:@"kusertoken"];

but token nil when check same in app homecoming me string.

also noticed have error (not sure if causes error user defaults):

add “app groups” entitlement app id

ios ios8 ios8-extension ios8-share-extension

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -