We are using App Center Push Notification and according to the following article https://learn.microsoft.com/en-us/appcenter/sdk/push/xamarin-forms, push notifications can be handled in App.xaml.cs with the use of Push.PushNotificationReceived.
This is actually working ATM, and the method is actually triggered for both background and foreground notifications.
We need to be able to distinguish them. We navigate the user to a specific part of the app whenever they tap on the notification (background) and we can't do the same if the app is already opened (foreground).
I've seen some ways of accomplishing that but they were all specific to the platform (iOS in this case). Is there a way to do the same in the PCL?