Waiting for ionicPlatform ready