But one time the battery died while the landlord was out of town, which meant I couldn’t get in my building for hours until his friend was able to find and bring over the physical key backup.
Why not get your phone charged somewhere? Neighbors, a shop, ... surely someone could lend you an outlet + charger for 30 mins?