diff options
author | Marino Faggiana <m.faggiana@twsweb.it> | 2018-08-04 12:19:27 +0300 |
---|---|---|
committer | Marino Faggiana <marinofaggiana@mbp-di-marino.homenet.telecomitalia.it> | 2018-08-04 12:19:27 +0300 |
commit | d37abd85e99f6d451ea6ccdc6695bef9abf35219 (patch) | |
tree | f174ffd13675e030a9d6982f34e87ef1f1b412df /Notification Service Extension | |
parent | a2d2d5acd0379e356c9f882ad07bc08e9c33fab6 (diff) |
dev push notification
Diffstat (limited to 'Notification Service Extension')
-rw-r--r-- | Notification Service Extension/NotificationService.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Notification Service Extension/NotificationService.swift b/Notification Service Extension/NotificationService.swift index 4685e516e..b227c40a4 100644 --- a/Notification Service Extension/NotificationService.swift +++ b/Notification Service Extension/NotificationService.swift @@ -59,7 +59,11 @@ class NotificationService: UNNotificationServiceExtension { do { let json = try JSONSerialization.jsonObject(with: data) as! [String:AnyObject] if let app = json["app"] as? String { - bestAttemptContent.title = app.uppercased() + if app == "spreed" { + bestAttemptContent.title = "Nextcloud Talk" + } else { + bestAttemptContent.title = app.capitalized + } } if let subject = json["subject"] as? String { bestAttemptContent.body = subject |