package Ġio . swift fest . www . swift fest . re ceiv ers Ċ Ċ import Ġandroid . app . Notification Ċ import Ġandroid . app . Notification Manager Ċ import Ġandroid . content . Broadcast Receiver Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ Ċ class ĠNotification Publisher Ġ: ĠBroadcast Receiver () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Receive ( context : ĠContext , Ġintent : ĠIntent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnotification Manager Ġ= Ġcontext . getSystem Service ( Context . NOTIFICATION _ SERVICE ) Ġas ĠNotification Manager ĊĊĠĠĠĠĠĠĠ Ġval Ġnotification Ġ= Ġintent . get Parcelable Extra < Notification >( NOTIFICATION ) ĊĠĠĠĠĠĠĠ Ġval Ġid Ġ= Ġintent . getInt Extra ( NOTIFICATION _ ID , Ġ 0 ) ĊĠĠĠĠĠĠĠ Ġnotification Manager . notify ( id , Ġnotification ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġvar ĠNOT IFICATION _ ID Ġ= Ġ" notification - id " ĊĠĠĠĠĠĠĠ Ġvar ĠNOT IFICATION Ġ= Ġ" notification " ĊĠĠĠĠĠĠĠ Ġvar ĠSESSION _ ID Ġ= Ġ" session - id " ĊĠĠĠ Ġ} Ċ }