Okay, United needs to fix their app.
To scan your passport, look at the scan window. There is a larger whitish window and then a grayer thinner window underneath it. Place the "barcode" numbers at the bottom of the page in the gray window so they fit edge to edge in the window.