Changed the push notification function to be called from sever side not from mobile anymore.