hey, based on the link you gave, you’re trying to do the local notifications example, which are different from push notifications. Its a bit confusing figuring out the difference but essentially local notifications are created from code in the app and don’t need to communicate with your server, while push notifications are sent from your server and don’t need an app update to be sent.
in reference to your problem with the example, i’m not sure why it errored out but I do know some of the sample code in that example is wrong. the part with the alert is trying to set the title and body to values of
notification.body, which are undefined values in the callback function. I’ve created an example that should work, with correct parameters and you can use that as a base for other local notifications you want to create.