mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-03 18:13:41 +00:00
Print token in debug
This commit is contained in:
@@ -224,6 +224,9 @@ final class SharedApplicationContext {
|
||||
if curDevice.isSupported {
|
||||
curDevice.generateToken(completionHandler: { (data, error) in
|
||||
if let tokenData = data {
|
||||
#if DEBUG
|
||||
print("\(tokenData.base64EncodedString())")
|
||||
#endif
|
||||
self.deviceToken.set(.single(data))
|
||||
} else {
|
||||
print("Error: \(error!.localizedDescription)")
|
||||
|
||||
Reference in New Issue
Block a user