OnPress function for Expo Notifications


#1

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.


#2

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


#3

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


closed #4

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