Automation code is running fine on local device but the same code is showing timeout exception on app center

When I am running the same code in my local device it is working fine without any error and test is passed,even I tried to run using maven on local device it worked fine. When I am running via app center on cloud devices, it is launching the app but failing at one point and giving the timeout exception.

AppCenterTestPRoject.AppCenter.Test_OnBoarding.onBoardingorg.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.AccessibilityId: Code-field (tried for 250 second(s) with 500 milliseconds interval)Build info: version: ‘3.12.0’, revision: ‘7c6e0b3’, time: '2018-05-08T14:04:26.12Z