Campaign group Rail Future told the BBC it was “absolutely right that reliability and capacity increase”, calling WiFi “not just an add-on or a luxury”.

Spokesman Bruce Williamson said patchy WiFi was not the “top priority” for passengers – “the key issues remain the cost of travel, overcrowding and reliability”.

“But anything we can do to attract people onto the railways has got to be a good thing.”

The Campaign for Better Transport, which advocates for sustainable and accessible travel, said the move would be a “real step change”.

“It’s worth taking a step to recognise how fantastic that is, and it adds a real USP to rail travel,” said the campaign’s Michael Solomon Williams.

He said unreliable internet was not something which had been stopping passengers from travelling via train – rather, the main issues were fares, delays and cancellations.

But he said it was not a matter of paying to fix one problem at the expense of another, and said ministers were working to tackle fares and service reliability.

Transport Focus, the independent watchdog representing the interests of Britain’s public transport passengers, said it welcomed any improvements to tackling internet “blackspots”.

“Rail passengers have been clear for years that reliable connectivity on trains is no longer a ‘nice to have’ – it’s essential.”