onNotificationPressed method
override
Called when the notification itself on the Android platform is pressed.
"android.permission.SYSTEM_ALERT_WINDOW" permission must be granted for this function to be called.
Implementation
@override
void onNotificationPressed() {
debugPrint("[DEBUG] Notification pressed at ${DateTime.now()}");
_sendPort?.send('onNotificationPressed');
// This method is optional. You can navigate the user back to your app here if needed.
FlutterForegroundTask.launchApp();
}