You need to add it to your own js file. just declare it in the global scope..
when you registered with: "pushNotification.register(....", you passed a param: "ecb":"onNotificationGCM"
and that is how the plugin know to call this method when you receive a push notification