Created
March 4, 2015 13:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)shouldRegisterDeviceWithAlias:(NSString *)alias token:(NSString *)token { | |
return alias.length > 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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