This example was provided my expo in their lates documentation for expo v36 regarding push notification. In this page this snack was linked as an example on how to achieve Push notifications.
This worked up to the version 35, but not in the newes vesion 36.
In this example I updated the to version 36 using expo upgrade. And send Push notifications to it using the Expo notification Tool.
When the app is previously closed and the notification is "selected" on android, the Notifications Listener will not be called.
This part was writen by expo
Welcome to Expo!
Open the App.js
file to start writing some code. You can preview the changes directly on your phone or tablet by clicking the Run button or use the simulator by clicking Tap to Play. When you're done, click Save and share the link!
When you're ready to see everything that Expo provides (or if you want to use your own editor) you can Export your project and use it with expo-cli.
Projects created in Snack are publicly available, so you can easily share the link to this project via link, or embed it on a web page with the Embed button.
If you're having problems, you can tweet to us @expo or ask in our forums.
Snack is Open Source. You can find the code on the GitHub repo.