Handling push notifications from a plugin

We are creating a flutter plugin, and we need to receive and handle push notifications (both android and ios), within the plugin. How can we do this, so that the app that is using our plugin don’t need to deal with our push notifications?