Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Call In progress #645

Open
joshoconnor89 opened this issue Feb 19, 2025 · 2 comments
Open

Android Call In progress #645

joshoconnor89 opened this issue Feb 19, 2025 · 2 comments

Comments

@joshoconnor89
Copy link

joshoconnor89 commented Feb 19, 2025

In iOS, when we start + connect a call, you can see there is call active by the green dot at the top. in addition, when locking the device, youll see the callkit UI showing call in progress.

however, with android, there is no UI. it seems as this package only supports ringing UI (lock screen and unlocked), when answering the call, it does not show and UI on the home screen or lock screen.

is this a bug or is this a feature request? is it possible to show UI when call is connected? or is this something i need to integrate with android telecom framework using ConnectionService

i want to have something like this (see top of phone, 0:06 with phone icon):
Image

and this lock UI:
Image

these are taking from using whatsapp.

code:

      await FlutterCallkitIncoming.startCall(params);
      await FlutterCallkitIncoming.setCallConnected(callId);

running the above in iOS shows system callkit but on android it does nothing. in fact, inspecting these methods shows that nothing is done.


  /// Start an Outgoing call.
  /// On iOS, using Callkit(create a history into the Phone app).
  /// On Android, Nothing(only callback event listener).
  static Future startCall(CallKitParams params) async {
    await _channel.invokeMethod("startCall", params.toJson());
  }

  /// Set call has been connected successfully.
  /// On iOS, using Callkit(update a history into the Phone app).
  /// On Android, Nothing(only callback event listener).
  static Future setCallConnected(String id) async {
    await _channel.invokeMethod("callConnected", {'id': id});
  }
@ebsangam
Copy link
Contributor

Do you mean persistent notification?

@joshoconnor89
Copy link
Author

Do you mean persistent notification?

yes exactly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants