Use user defaults if in Simulator, otherwise use App Groups in Keychain