Skip to content

Commit fc9cfa1

Browse files
committed
Merge branch 'fix_missed_calls_show_notifications'
2 parents e4b4c2b + c741068 commit fc9cfa1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Added `defines.config.json` file to example to support environment configuration used with ```flutter run --dart-defines-file=defines.config.json```
66
* [Web] Added `FIREBASE_ENABLE` defines to initialize Firebase only if set to true
77
* [Web] Added raw `Connect({Map<String, dynamic>?})` sent to TwiML webhook.
8+
* [Android] Fix `showMissedCallNotifications` not working due to incorrect method channel name
89

910
## 0.1.3
1011
* Added: CallEvents:

ios/Classes/SwiftTwilioVoicePlugin.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public class SwiftTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStreamHand
305305
}else if flutterCall.method == "requestBluetoothPermission"{
306306
result(true)
307307
return
308-
} else if flutterCall.method == "show-notifications" {
308+
} else if flutterCall.method == "showNotifications" {
309309
guard let show = arguments["show"] as? Bool else{return}
310310
let prefsShow = UserDefaults.standard.optionalBool(forKey: "show-notifications") ?? true
311311
if show != prefsShow{

macos/Classes/TwilioVoiceChannelMethods.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ public enum TwilioVoiceChannelMethods: String {
2626
case requestBluetoothPermission = "requestBluetoothPermission"
2727
case requiresBackgroundPermissions = "requiresBackgroundPermissions"
2828
case requestBackgroundPermissions = "requestBackgroundPermissions"
29-
case showNotifications = "show-notifications"
29+
case showNotifications = "showNotifications"
3030
}

0 commit comments

Comments
 (0)