Skip to content

Commit deeca85

Browse files
committed
fix: set notification center delegate to plugin self*
Addresses generated notifications not showing on foreground app
1 parent 6113672 commit deeca85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ios/Classes/SwiftTwilioVoicePlugin.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public class SwiftTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStreamHand
7575

7676
voipRegistry.delegate = self
7777
voipRegistry.desiredPushTypes = Set([PKPushType.voIP])
78+
79+
UNUserNotificationCenter.current().delegate = self
7880

7981
let appDelegate = UIApplication.shared.delegate
8082
guard let controller = appDelegate?.window??.rootViewController as? FlutterViewController else {

0 commit comments

Comments
 (0)