Incoming call notification like WhatsApp in Flutter
Asked Answered
D

1

6

I have implemented Audio and video call using Agora for Android and iOS. What I need now a way to show notification with Accept and Reject buttons for calls. I have been searching around and found callkeep, flutter-callkeep and flutter_voip_kit but they are using built-in phone app. I want to do it like whatsapp or skype. Can anyone help me out and guide me in right direction. Thanks

Deadfall answered 2/1, 2022 at 21:44 Comment(1)
Let's start with this. I think you'll need to instantiate a new flutter engine yourself, and give it the proper parameters to load. Have you checked the flutter docs? I think I've read something similar, but can't remember whereComport
S
6

I did try something like this recently, will share my insights.
Some points about WhatsApp call in the latest android versions:

  1. Only when the phone is locked you will get a full-screen call notification
  2. For other cases you will get a notification with accept or reject buttons

So the main thing you would need is a message transfer method, for which you could use firebase_messaging package.

For notifying the user you could use awesome_notifications package

Strawworm answered 3/1, 2022 at 5:10 Comment(2)
can you provide me the sample of code... i am stuck on this from last 5 days.Railey
its been so long and hope you found the solution, if so, please help me doing the sameAdventitia

© 2022 - 2024 — McMap. All rights reserved.