Most likely the issue has to do with the sharing settings on the webmap. Make sure that the webmap is shared publicly, to the organization, or with the correct groups, whatever is appropriate for your application and that the user has the correct credentials to view it.
GIS Developer
City of Arlington, Texas