onNotify abstract method

void onNotify(
  1. RemoteMessage notification
)

Will be called whenever a new notification come and app is in foreground

Implementation

void onNotify(RemoteMessage notification);