Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save keisukeYamagishi/222a012c2ba350ac5c28e38a92d210f7 to your computer and use it in GitHub Desktop.
Save keisukeYamagishi/222a012c2ba350ac5c28e38a92d210f7 to your computer and use it in GitHub Desktop.
var token = String(format: "%@", deviceToken as CVarArg) as String
let characterSet: CharacterSet = CharacterSet.init(charactersIn: "<>")
token = token.trimmingCharacters(in: characterSet)
token = token.replacingOccurrences(of: " ", with: "")
print("deviceToken: \(token)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment