Skip to content

Instantly share code, notes, and snippets.

@redent
Created March 4, 2015 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redent/7138c74a70c50864bcb5 to your computer and use it in GitHub Desktop.
Save redent/7138c74a70c50864bcb5 to your computer and use it in GitHub Desktop.
Ejemplo de código para evitar que los dispositivos se registren sin alias en TwinPush
- (BOOL)shouldRegisterDeviceWithAlias:(NSString *)alias token:(NSString *)token {
return alias.length > 0;
}
func shouldRegisterDeviceWithAlias(alias: String!, token: String!) -> Bool {
return alias != nil && !alias.isEmpty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment