A man walks past flags of Canada and China in front of Tiananmen Gate in Beijing, 21 October 2003, hoisted ahead of a four-day official visit by Canadian Prime Minister Jean Chretien.FREDERIC J. BROWN | AFP | Getty ImagesNo matter who takes the top job in Canada at the next elections, the new government will likely have to take a harder line on China, analysts say.”Whoever is elected will have to take a tougher stance. Public opinion (in Canada) has shifted significantly against China’s favor,” said Lynette Ong, associate professor at the University of Toronto’s department of political science and Asian institute.Voting day on Oct. 21Canadians head to the polls on October 21 to elect a new federal government.Opposition leader, the Conservative Party’s Andrew Scheer, is starting to pull ahead of incumbent Prime Minister Justin Trudeau, who is also the Liberal leader, some polls show.There is no question that Washington is putting very heavy pressure on Ottawa to ban Huawei in our 5G system.Paul EvansThe University of British ColumbiaCanada has been caught between its two largest trading partners as the U.S. and China remain locked in a trade war that’s lasted more than a year.”Under the Trudeau government, Canada has been trying not to pick sides, even though Canada and the US are close allies, in military and economic terms. Canada sees China as a growing power that it needs to engage, which makes it hard to navigate the current imbroglio,” Ong told CNBC via email.”The US-China trade war makes things more difficult for Canadian policy makers,” said Robert Fay, director of global economy at the Centre for International Governance Innovation in Canada.”It’s not about ‘picking sides’ – rather it is about making sure that Canadian businesses have access to many markets for their products and services,” Fay told CNBC in an email.Relations with the USThe U.S. is Canada’s top trading partner, with goods and services trade between the two countries totaling an estimated $714.1 billion in 2018, according to the U.S. Trade Representative office. Canada was America’s third largest supplier of goods imports last year, the USTR said.Trump’s protectionist stance on trade has hit countries in Europe as well as Mexico, Japan and China. Canada has not been spared either.Citing national security concerns, the Trump administration raised steel and aluminium tariffs on Canada last summer.The U.S. eventually lifted those tariffs, paving the way for the United States Mexico Canada Agreement — an updated version of the the 25-year-old NAFTA deal. Still, their bilateral trade ties remain contentious.”The USMCA is yet to be ratified in the U.S., and therefore the U.S. has considerable leverage, making Canada very vulnerable right now,” said Paul Evans, professor at the public policy and global affairs school at the University of British Columbia in Vancouver, Canada.The neighboring allies have seen bilateral ties frat since President Donald Trump took office in 2017. For one, the U.S. withdrew from the Paris Climate Accord which Canada has been a loud advocate for. Then Trump openly called Trudeau “very dishonest and weak” at a G-7 meeting in Quebec in June last year.Relations with ChinaIf the Hong Kong situation deteriorates … then Canada will have to take a harder stance on China because there are 300,000 Canadian citizens living in Hong Kong.Paul Evansprofessor at the University of British ColumbiaThe U.S has alleged that Huawei’s technology could enable Chinese espionage but the tech giant has repeatedly denied that its products represent any risk.”There is no question that Washington is putting very heavy pressure on Ottawa to ban Huawei in our 5G system,” said Evans.”Many Canadians have felt that the U.S. has thrown Canada under the ‘anti-china, cold war’ bus with the Meng (Wanzhou) arrest,” said Evans.”It is a widespread view among tech experts in Canada” that Huawei’s 3G and 4G technology worked well in Canada, he added.Canada is caught between a rock and a hard place.If Canada were to follow the U.S. in banning Chinese tech, it will “put a chill in the bilateral relationship with China,” Evans said. Yet if it doesn’t, Canada may face “retaliation from the U.S. and that would be hard to juggle,” he added.Following Meng’s arrest, Beijing detained other Canadian citizens for alleged spying and blocked imports of some of the country’s most traded commodities — canola and meat.Hong Kong protestsWhile China has not been raised as an official campaign issue by either the conservatives or the liberals so far, but should the Hong Kong protests deteriorate further, things could change, Evans said.Hong Kong — a former British colony that returned to Chinese rule in 1997 — has entered its fourth month of mass protests. What started out as demonstrations against a now-suspended extradition bill has caught the attention of the world, amid increasing violence and disruptions to international air travel.”The most sensitive issue is the Hong Kong situation,” Evans said.”If the Hong Kong situation deteriorates — for example if there is armed police going in to Hong Kong from the mainland or protesters get killed — then Canada will have to take a harder stance on China because there are 300,000 Canadian citizens living in Hong Kong, the city with the most Canadian citizen residents in Asia.”Canadian ambassador to China John McCallum was recently caught up in the diplomatic dispute. In January, McCallum was fired after he told a reporter it would be “great for Canada” if the U.S. dropped its extradition request against the Huawei executive and negotiated a deal for the release of the two Canadian men detained in China. There was a public backlash as people criticized his comments as inappropriate.McCallum’s replacement was announced in September — a move that can be interpreted as reestablishing diplomatic ties, said Evans.And now may be a good time for Canada to diversify its trade relations, Jay and Evans suggested.Evans said Canada could seek out stronger trade partners such as India and Asian countries that are part of regional trade blocs such as the Comprehensive and Progressive Agreement for Trans-Pacific Partnership.— Reuters contributed to this report.