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
Post a Comment