Invoke native code using method channel from top-level function
When the app is in the background and receives notifications through the Firebase Cloud Messaging (FCM) system, the onBackgroundMessage handler in the app is invoked to manage these notifications. In this scenario, I need to trigger a native method from Flutter using a method channel to execute a specific action on the native side. However, invoking the method directly from the onBackgroundMessage handler is not feasible, as it is a top-level function as per Flutter’s FCM requirements.