Skip to content

fix: Show missed call notification method handler error#313

Merged
cybex-dev merged 2 commits intomasterfrom
fix/show-missed-call-notification-error
Feb 8, 2026
Merged

fix: Show missed call notification method handler error#313
cybex-dev merged 2 commits intomasterfrom
fix/show-missed-call-notification-error

Conversation

@cybex-dev
Copy link
Owner

Description

Addresses an issue where the showMissedCallNotifications method was not functioning correctly due to an incorrect method channel name. This correction ensures that missed call notifications are displayed as expected.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Screenshots (if appropriate):

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Flutter-to-native method channel invocation for missed call notification settings by correcting the invoked method name so the native handlers are reached.

Changes:

  • Update showMissedCallNotifications to invoke the correct method channel name (showNotifications).
  • Add a CHANGELOG entry documenting the fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
lib/_internal/method_channel/twilio_voice_method_channel.dart Corrects the method channel method name used by showMissedCallNotifications.
CHANGELOG.md Documents the bug fix in the next release notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 50 to 52
set showMissedCallNotifications(bool value) {
_channel.invokeMethod('show-notifications', <String, dynamic>{"show": value});
_channel.invokeMethod('showNotifications', <String, dynamic>{"show": value});
}
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Future returned by invokeMethod is discarded in this setter. If the platform call fails (e.g., not implemented or throws), it can surface as an unhandled asynchronous exception. Consider explicitly handling the Future (e.g., use unawaited(...) plus .catchError(...) / logging) so failures don’t crash or get lost silently.

Copilot uses AI. Check for mistakes.
* Fix: [Web] Await Twilio Device `register()` and `unregister()` method calls.
* Fix: [Web] Prevent duplicate `TwilioVoiceWeb` instances.
* Feat: [iOS] Add support for call logging via `enableCallLogging(bool)` to record call in recents. No other platform currently supports this, see [NOTES.md](NOTES.md#limitations) for more details.
* Fix: `showMissedCallNotifications` method call not working due to incorrect method channel name.
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s trailing whitespace at the end of this CHANGELOG entry (after the period). Please remove it to keep markdown diffs clean and avoid whitespace-only churn.

Suggested change
* Fix: `showMissedCallNotifications` method call not working due to incorrect method channel name.
* Fix: `showMissedCallNotifications` method call not working due to incorrect method channel name.

Copilot uses AI. Check for mistakes.
@cybex-dev cybex-dev merged commit 67ec4ff into master Feb 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android bug Something isn't working iOS macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants