I am using sskeychain ( https://github.com/soffes/sskeychain ) to store my accounts and passwords in the IOS keychain. I assume that if I keep an account, it should be available on my other device. But he does not appear there.
I read my accounts using this code:
NSArray *arr=[SSKeychain accountsForService:@"Login"];
for (NSString *s in arr) {
NSLog(@"Account: %@",s);
}
and get this (only one entry, others similar):
Account: {
acct = "friXXXXXter@XXXX.com";
agrp = "3B4384Z34A.de.gondomir.LocalButler";
cdat = "2014-05-09 22:55:08 +0000";
mdat = "2014-05-09 22:55:08 +0000";
pdmn = ak;
svce = Login;
sync = 0;
tomb = 0;
}
But this is not displayed on another device. Both devices have iOS 7.1.1. I save the password with this line:
[SSKeychain setPassword:self.passwortField.text forService:@"Login" account:self.userField.text];
I turned on key sharing in Xcode and included the key group "de.gondomir.LocalButler" in it.
Am I missing something? Should the name of the service be something special?
Thank!