Reverting code to for pushnotifications