Popular video app TikTok is scrambling to find a new ownership structure that that would pass muster in both the United States and China. The negotiators will have to finalise a deal before September 20, a deadline set by US President Donald Trump.

Earlier this week, a deal appeared to be taking shape that would allow Silicon Valley-based Oracle to be the US technology partner for TikTok to allay Washington’s concerns that the platform could be used for Chinese espionage.

But details of the deal remained unclear. Some reports said Oracle would be a minority stakeholder in TikTok, with the Chinese parent firm ByteDance keeping a majority.

The Oracle bid is being reviewed by a US government national security panel, reported AFP. President Trump on Thursday said that a decision would be announced soon.

TikTok has nearly 100 million users in the United States and as many as one billion worldwide. The US is undecided over the deal due to the national security implications. Republicans fear that the app could be used by the Chinese to spy on US citizens.

Some analysts said it appeared difficult to craft a deal that allays concerns in both countries on security and the algorithms and other key technologies used by TikTok.

“It seems like a zero-sum game where either China or the United States gets the intellectual property and security benefits, and there’s no way for both parties to share that,” said Betsy Cooper, director of the Aspen Institute’s Tech Policy Hub and a former Homeland Security official.

Cooper said the reported deal with Oracle hosting data as a minority shareholder “doesn’t sound like it resolves the security concerns” raised by Trump and other US officials.

James Lewis, who heads technology policy at the Center for Strategic and International Studies, said Oracle could still win approval for its deal, but may need to make changes.

“If they can show a good package of security measures it will help,” Lewis said. “It’s an easier sell for Oracle if ByteDance becomes a minority owner.”

Six Republican US senators said in a letter to Trump this week that “any deal between an American company and ByteDance must ensure that TikTok’s US operations, data, and algorithms are entirely outside the control of ByteDance or any Chinese-state directed actors, including any entity that can be compelled by Chinese law to turn over or access US consumer data.”

Trump has threatened to ban TikTok in the United States if no deal is reached by September 20, in the latest battle between the two countries over technology.