From b3a9cf749231696979a5292a0ca7e322306224cb Mon Sep 17 00:00:00 2001 From: Hien Nguyen Date: Tue, 5 Mar 2024 14:45:33 +0700 Subject: [PATCH 1/2] feat: update linked func hideCallkitIncoming --- CHANGELOG.md | 3 +++ README.md | 2 +- lib/flutter_callkit_incoming.dart | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfb00032..93783a68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.0.2+1 +* Fixed linked func `hideCallkitIncoming` + ## 2.0.2 * Add func `hideCallkitIncoming` clear the incoming notification/ring (after accept/decline/timeout) * Add props `isShowFullLockedScreen` on Android diff --git a/README.md b/README.md index 5e55696b..1a9e2cbd 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ Our top sponsors are shown below! ``` * Hide notification call for Android ``` - hideCallkitIncoming({ id: 'uuid call' }) + await FlutterCallkitIncoming.hideCallkitIncoming(this._currentUuid); ``` * Started an outgoing call diff --git a/lib/flutter_callkit_incoming.dart b/lib/flutter_callkit_incoming.dart index 1fa9cd7e..3ed16ccd 100644 --- a/lib/flutter_callkit_incoming.dart +++ b/lib/flutter_callkit_incoming.dart @@ -133,6 +133,11 @@ class FlutterCallkitIncoming { return await _channel.invokeMethod("requestNotificationPermission", data); } + /// Hide notification call for Android + static Future endCall(String id) async { + await _channel.invokeMethod("hideCallkitIncoming", {'id': id}); + } + static CallEvent? _receiveCallEvent(dynamic data) { Event? event; Map body = {}; From 1f5fb49b84aa9ba4965445e3006034f6678e1b3d Mon Sep 17 00:00:00 2001 From: Hien Nguyen Date: Tue, 5 Mar 2024 14:46:32 +0700 Subject: [PATCH 2/2] feat: v2.0.2+1 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index b4eae47d..3f79386c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_callkit_incoming description: Flutter Callkit Incoming to show callkit screen in your Flutter app. -version: 2.0.2 +version: 2.0.2+1 homepage: https://github.com/hiennguyen92/flutter_callkit_incoming repository: https://github.com/hiennguyen92/flutter_callkit_incoming issue_tracker: https://github.com/hiennguyen92/flutter_callkit_incoming/issues