OnPress function for Expo Notifications

Is there any possibility to call function pressing expo notification? If so, how can I do this? I’m using local notifications, which are linked to mqtt messages.
Thank you for your awesome work and also for any suggestions.

yup, just add a listener: https://docs.expo.io/versions/v28.0.0/sdk/notifications#subscribing-to-notifications

1 Like

I thought those listeners are only for remote notifications, not for local.
Now it’s working as I expected.
Thank you very much.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.