Defining onOtificationGCM as a function inside push-notification client.