Skip to content

Commit ae5c978

Browse files
authored
Merge pull request #301 from cybex-dev/299-ios-missed-call-shows-notification_missed_call-instead-of-content
Fixes iOS Missed Call Notification Content
2 parents 832ef6c + 66e6479 commit ae5c978

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Next release
2+
3+
* Fix: [iOS] Missed call notifications now show caller name (or full number) on title, and "Missed call" text in body. [Issue #299](https://github.com/cybex-dev/twilio_voice/issues/299)
4+
* Docs: update CHANGELOG
5+
16
## 0.3.2
27

38
* Fix: [iOS] Add missing `deviceToken` when reporting 'DEVICETOKEN' `CallEvent`. [Issue #241](https://github.com/cybex-dev/twilio_voice/issues/241)

ios/Classes/SwiftTwilioVoicePlugin.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,8 @@ public class SwiftTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStreamHand
682682
}
683683

684684
let title = userName ?? self.clients["defaultCaller"] ?? self.defaultCaller
685-
content.title = String(format: NSLocalizedString("notification_missed_call", comment: ""),title)
685+
content.title = title
686+
content.body = NSLocalizedString("notification_missed_call_body", comment: "")
686687

687688
let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 1, repeats: false)
688689
let request = UNNotificationRequest(identifier: UUID().uuidString,

0 commit comments

Comments
 (0)