Before push notification implementation