It’s needs to automatically shift to using battery if the AC power is disconnected. I looked for something like this a while ago and found there are units that act this way. However, some require you press a button to shift modes.
You generally have one usb micro and one or two usb A.
If you connect from a charger to micro then from A to pi then it will use the battery, but the charger will also charge the battery.
Be careful, you need one that can supply 3A to RPI 4, this will also require to charge with ~4Amp the battery.
I did not seen a usual power bank for charging phone/tablet that can be used for this.
Are you sure about that?
When I look at USB cables with A->micro they are generally rated for 1 or 2.1 amps.
Are you saying that the pi, the uses a micro connector uses 50% more than most cables is rated for?
I was battling the ‘low current’ shut off problem found in this post. I ended up going a different route for power, I never purchased any power banks for this purpose. But this company seems to be on top of corner case solutions: https://voltaicsystems.com/always-on-batteries/#faq_2
Initially I was thinking it as well. However, my wall plug is quite far from the place where my RPi4 located and most of the UPS came with a short cable.
Also, most of the UPS does not recommend to connect it to the extension strip.
No problem on my side even if I’m running it with an ssd.
I can check the current consumption if needed.
The datasheet of the pi 4 says 1.2A for peripherals.
So it depends a lot on what you are planning to connect to it. A simple math would say us that 3A -1.2A = 1.8A. So without accessories 2A should be ok.