We have a 2021 View 24D.
The inverter does require a power source - either the coach batteries, generator or shore power.
The auto transfer switch (ATS) switches appears to default to the generator power - and then switches to shore power when that's present, determining which of the sources is providing power to the inverter and coach. And if neither is present, the coach is powered by the coach batteries. If the inverter is seeing shore or generator power, seems unlikely this would be this would prevent the inverter from running off battery power.
If the inverter is on when running on shore power, and then stays on after shore power is disconnected, that should confirm the batteries are properly connected to the inverter (which is extremely important, since shore or generator power are the primary sources for charging the batteries - through the inverter - though you can get a much slower charge from solar panels, which doesn't go through the inverter).
NOTE that the inverter will automatically turn itself off when it doesn't see a load (setting 5, default is 25 hours). After it turns off you'll need to manually turn on the inverter at the panel or on the panel connected to the inverter.
I've found it can require some patience on our inverter to turn it on sometimes with the power button, if we've had it disconnected from shore power for an extended period (such as after I get it back from Mercedes service). Though once the inverter is on - and we're using the RV, the inverter will stay on - and needs to be on in order to charge batteries from the shore or generator power.
Since the inverter appears to be working while on shore power and off battery after shore power is disconnected, recommend manually turning the inverter off - and if it fails to come on, then contact Xantrex or your RV dealer's service dept while the inverter is in this state and see if they can help you diagnose this problem.
Agree with the Xantrex comment about setting parameters. We have lithium batteries installed - and I found a few of the settings did not match our battery specifications - and manually changed them. Though I don't believe any of the settings I changed would have resulted in the type of problem the OP is reporting.