From 70473b59308c3f7d7bc4d336be95eafb8480c7d0 Mon Sep 17 00:00:00 2001 From: Hien Nguyen Date: Sat, 20 Jan 2024 17:38:06 +0700 Subject: [PATCH 1/2] feat: hide call notification android --- lib/flutter_callkit_incoming.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/flutter_callkit_incoming.dart b/lib/flutter_callkit_incoming.dart index 064d8e9c..1fa9cd7e 100644 --- a/lib/flutter_callkit_incoming.dart +++ b/lib/flutter_callkit_incoming.dart @@ -49,6 +49,12 @@ class FlutterCallkitIncoming { await _channel.invokeMethod("showMissCallNotification", params.toJson()); } + /// Hide notification call for Android. + /// Only Android + static Future hideCallkitIncoming(CallKitParams params) async { + await _channel.invokeMethod("hideCallkitIncoming", params.toJson()); + } + /// Start an Outgoing call. /// On iOS, using Callkit(create a history into the Phone app). /// On Android, Nothing(only callback event listener). From 0064a7d01d13227ff72e812f9b2895bdeb2e47e1 Mon Sep 17 00:00:00 2001 From: Hien Nguyen Date: Sat, 20 Jan 2024 17:52:22 +0700 Subject: [PATCH 2/2] feat: fix build example --- example/android/app/src/main/AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index a87ef1bf..6fd31471 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -5,7 +5,7 @@ android:icon="@mipmap/ic_launcher">