Ms Meng, 46, is the daughter of Huawei’s founder and her detention has angered China and soured its relations with both Canada and the US.

This comes against the background of an increasingly acrimonious trade dispute between Washington and Beijing.

Ms Meng is accused in the US of using a Huawei subsidiary called Skycom to evade sanctions on Iran between 2009 and 2014.

President Trump told Reuters news agency that he could intervene in the US Justice Department’s case against Ms Meng in order to avoid further deterioration in relations with China.

“Whatever’s good for this country, I would do,” said Mr Trump.

“If I think it’s good for what will be certainly the largest trade deal ever made – which is a very important thing – what’s good for national security , I would certainly intervene if I thought it was necessary.”

Courtroom applause

At the three-day bail hearing in Vancouver, her lawyers sought to provide guarantees that she would not pose a flight risk if released. The application was opposed by Canadian prosecutors.

US prosecutors say Ms Meng had publicly misrepresented Skycom as being a separate company from Huawei in order to avoid sanctions on Iran. It is also alleged she deceived banks about the true relationship between the two companies.

Ms Meng has denied any wrongdoing and said she will contest the allegations.

Image copyrightReuters

Image caption
Meng Wanzhou is the daughter of the company’s founder

Applause broke out in the courtroom when Justice William Ehrcke granted bail. Ms Meng cried and hugged her lawyers.

The judge ordered her to reappear in court on 6 February.

After the ruling, Huawei issued a statement, saying: “We have every confidence that the Canadian and US legal systems will reach a just conclusion.”