package Ġcom . fer ox . int ouch Ċ Ċ import Ġio . flutter . app . Flutter Application Ċ import Ġio . flutter . plugin . common . Plugin Registry Ċ import Ġio . flutter . plugin . common . Plugin Registry . Plugin Regist r ant Callback Ċ import Ġio . flutter . plugins . firebase messaging . Flutter Firebase Messaging Service Ċ import Ġandroid . os . Build Ċ import Ġandroid . app . Notification Channel Ċ import Ġandroid . app . Notification Manager Ċ import Ġandroid . content . Context Ċ Ċ class ĠApplication Ġ: ĠFlutter Application (), ĠPlugin Regist r ant Callback Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate () ĊĊĠĠĠĠĠĠĠ Ġif Ġ( Build . VERSION . SDK _ INT Ġ>= ĠBuild . VERSION _ CODES . O ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠCreate Ġthe ĠNotification Channel ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġname Ġ= Ġ" Incoming ĠCalls " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġdescription Text Ġ= Ġ" Incoming ĠCalls "; ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġimportance Ġ= Ġandroid . app . Notification Manager . IMPORT ANCE _ MAX ; ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġm Channel Ġ= ĠNotification Channel (" Incoming Calls ", Ġname , Ġimportance ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġm Channel . description Ġ= Ġdescription Text ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠRegister Ġthe Ġchannel Ġwith Ġthe Ġsystem ; Ġyou Ġcan 't Ġchange Ġthe Ġimportance ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// Ġor Ġother Ġnotification Ġbehaviors Ġafter Ġthis ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġnotification Manager Ġ= Ġget System Service ( Context . NOTIFICATION _ SERVICE ) Ġas ĠNotification Manager ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnotification Manager . create Notification Channel ( m Channel ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠFlutter Firebase Messaging Service . set Plugin Regist r ant ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġregister With ( registry : ĠPlugin Registry ) Ġ{ ĊĠĠĠĠĠĠĠ ĠFirebase Cloud Messaging Plugin Regist r ant . register With ( registry ) ĊĠĠĠ Ġ} Ċ }