As electrical energy for cars stands at present, we are unlikely to get anywhere near the charging capacity needed. Probably the same with hydrogen.
Either way, we are likely to need a huge change in transport habits when it come about. I don't see the range problem ever going away with electric.
With hydrogen, I have heard about cars in WW2 being run with huge gas bags on the roof as a store for town gas. Hydrogen was the main ingredient of that, but at the low pressures involved needed a big store (i.e. a great big gasbag) for any resonable range.
At high pressure, things start to get tricky. Storing and using, not a huge problem, but refuelling is where things become fraught. And if the stuff is to be distributed via the gas grid, it will need considerable effort to compress it enough to get a big enough charge into a compact enough space to give the range wanted. And compressing it takes more energy.
Could be practically possible, but quite possibly that means not practical.