5

I am building a VoIP calling app in Flutter. I need to alert the user and show a Widget on the screen so that the user can accept or reject incomming calls without unlocking the phone. So basically I need a Flutter version for this.

Akas Antony
  • 739
  • 1
  • 8
  • 19

1 Answers1

1

You may need to use MethodChannel via your flutter app for native android access. In android, you can create a notification , with setFullScreenIntent(..) Official documentation mentions , Only for use with extremely high-priority notifications demanding the user's immediate attention, such as an incoming phone call

NotificationCompat.Builder builder = new NotificationCompat.Builder(this,"methodId")
                .setContentText(" content ")
                .setContentTitle("Title..")
                .setFullScreenIntent(...)
                .setSmallIcon(R.drawable.launch_background)
mykey
  • 1,943
  • 19
  • 13