Happened to me.
Purchased my Gen2 early this year, driving back with it after the purchase from another state, about 500 miles of the 650 so only 150 left to go. Had to take a leak, finding a place at the same time I needed it along the interstate was not happening. Finally a gas station, jumped out, with truck off but key in ignition. Had to go bad, push the door lock button closed the door and ran the the bathroom. Cam back out, yes, locked out. I new the code was in the glovebox, only key was in ignition did not know about App! Got use to my Ford Excursion with Door pad that I know the number for!
called Ford dealer, they said call Ford RoadSide Assistance 800-241-3673, which I did, about an 30-40 minutes later I was on the road again after Ford called a local service to open my door. Pulled up the passenger door lock button and I was in. No Charge, part of the warrant. So, remember another last resort is:
Ford Roadside Assistance. 800-241-3673