move push notification function execution after deviceReady