Local notirfication on IOS

Hi all, I’ve a question on Firebase Messaging with Ios: when I receive a notification from Firebase, I would like to use local notifications to show the notification but I have to avoid the “automatic notification” or I see the popup twice on smartphone. How can I avoid to show the automatic notification? I’ve tried to send only data without notification object but in this case the onMessage function seems not catch the event…

Thanks