I’m sending distant notifications to my app on iOS (content-available: 1). When my app is within the background, Expo triggers the execution of the notification process and I can obtain the notification. However when my app is working (i.e. in foreground) and I ship a distant notification (content-available: 1), Expo neither calls the registered process nor the Notifications.addNotificationReceivedListener callback for the notification.
If I ship a daily alert notification when my app is within the foreground, the callback (Notifications.addNotificationReceivedListener) is known as as anticipated.
I even have the handler (Notifications.setNotificationHandler) registered which is known as when an alert notification is acquired however by no means will get referred to as when a remote-notification is obtain (content-available: 1).
I feel I’m lacking one thing fundamental right here.
I’m attempting to make use of the distant notifications to speak the progress of a protracted working motion and needed to keep away from the consumer polling the server.
Is there a solution to get a callback when a remote-notification is delivered and my app is within the foreground?
Thanks for the assistance.